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]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top