|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
(newbie -vb2005) going back to begin of file with StreamReaderHello,
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" <gebr***@dit.niet> schrieb: 'Reader.BaseStream.Position', for example. Check out the stream's 'Seek' > 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? method too. -- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://dotnet.mvps.org/dotnet/faqs/> Herfried K. Wagner [MVP] schreef:
> "Opa Vito" <gebr***@dit.niet> schrieb: Thank you.> >> 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. > Vito
Handle Worked - can someone please double check
Bug in Datagrids Multiple child forms - updating the right one Export array from vb.net to excel File converting/sending help filter dataTable/datagridview to show top 1 row for duplicate IDs? Date as Null Ftp Client Help How can I to fill a polygon? problem creating com+ object using ASP |
|||||||||||||||||||||||