StreamReader
Is there any way to go back to the top of a file when reading in from a file...or is the only to close the current object create a new one and open the file again?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
George EakinPosted Nov 19, 2008, 7:08 PM
Found this thread looking for the same thing. The answer is YES, you can. The StreamReader object is foward only but the underlying stream is not. Example:
Thanks everyone for the help.
c_wileyPosted Feb 9, 2004, 7:55 AM
jamesPosted Feb 9, 2004, 7:42 AM