Posted on 2007-07-24
Last Modified: 2013-12-14
i want to convert this part of line to C#. but it seems that C# does not have reset in streaming. any help?

Question by:DWR200
    LVL 22

    Expert Comment

    What kind of stream do you have? What would you like to accomplish with the Reset method?
    LVL 53

    Expert Comment

    I think that's it's replace by .Seek

    LVL 6

    Accepted Solution

    Stream objects in C# have a method called Flush, I think that's what you're looking for. Set the length of the Stream object to 0 before doing the flush.

    Check this out:

    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    Join & Write a Comment

    Article by: DanRollins
    This article describes a JavaScript program that creates a maze made of hexagonal cells.  In Part 2 (, we'll extend the program by adding a depth-…
    Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
    The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.
    The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    24 Experts available now in Live!

    Get 1:1 Help Now