Home All Groups Group Topic Archive Search About

Reading certian lines in a text file

Author
19 Nov 2007 1:33 PM
id10t error
Hello,

I know how to read a text file. However now i need to start reading a
file on line 4 of the text file. Is there something that will allow me
to start reading on a certian line number?

Author
19 Nov 2007 1:38 PM
Herfried K. Wagner [MVP]
"id10t error" <tubbz***@gmail.com> schrieb:
> I know how to read a text file. However now i need to start reading a
> file on line 4 of the text file. Is there something that will allow me
> to start reading on a certian line number?

Not really.  Nevertheless, you can read the lines until the line counter
reaches the line you are attempting to read and discard the other lines
read.

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>