B
BobRoyAce
I am using an IO.StreamReader to read the contents of a text file. It
all works just fine. However, I do not know of a way to move back to
the beginning of a file. For example, let's say that I read in five
lines from the file, or all of them for that matter. How do I then
point the IO.StreamReader back to the beginning of the file? I would
imagine that I could use "New IO.StreamReader(sFileName)" to create a
new IO.StreamReader pointing to the file, and starting back from the
beginning. I am just wondering if there is another way to do this
(i.e. some method or something).
all works just fine. However, I do not know of a way to move back to
the beginning of a file. For example, let's say that I read in five
lines from the file, or all of them for that matter. How do I then
point the IO.StreamReader back to the beginning of the file? I would
imagine that I could use "New IO.StreamReader(sFileName)" to create a
new IO.StreamReader pointing to the file, and starting back from the
beginning. I am just wondering if there is another way to do this
(i.e. some method or something).