(newbie -vb2005) going back to begin of file with StreamReader

  • Thread starter Thread starter Opa Vito
  • Start date Start date
O

Opa Vito

Hello,

I do a reading of a file with a StreamReader, reading line after line.
How do I force the reader to go back to the beginning of the file and
start reading again (or go to a specified line) when it reaches the end
of the file?

Thanks

Opa Vito
 
Opa Vito said:
I do a reading of a file with a StreamReader, reading line after line.
How do I force the reader to go back to the beginning of the file and
start reading again (or go to a specified line) when it reaches the end of
the file?

'Reader.BaseStream.Position', for example. Check out the stream's 'Seek'
method too.
 
Back
Top