StringReader Go Back to FirstLine?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is it true that these objects are forwardonly?

If not, can someone show me how to go back to line 1, after I have read the first 100 lines.

Thanks

Mike
 
Mike,
Have you considered creating a new StringReader? Then reading from this new
StringReader from the beginning of the string.

Hope this helps
Jay
 
You could try reading it with a BufferedStream and a StreamReader. If
you need examples let me know
 
You can create string array to hold each line read.
string readLine[];

when you want to go back to the first line -> readLine[0]
 
Back
Top