Reading certian lines in a text file

  • Thread starter Thread starter id10t error
  • Start date Start date
I

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?
 
id10t error said:
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.
 

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