reset a streamreader to the beginning?
Posted on 2006-03-29
Hey, I am using a System.IO.StreamReader, specifically the ReadLine method to parse through an ascii file and extract the data I need. I am using this because I used to use the old line input command a lot (actually have used it for about 15 years so this a weird shift). Anyway, the ReadLine method, called successively, reads successive lines of the file. Is there a way to reset this to the beginning, so that the next ReadLine method reads the first line, without closing and reinstantiating the reader?