Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Read second line of text file

Status
Not open for further replies.

clowns119

Programmer
Feb 20, 2005
15
US
How would I read the second or third line down on a text file
I know I can use readline to read a file line by line but I can not figure out how to get it to read a specific line
 
Just use an integer that increases each time you read a line. Then you just have to say:
Code:
If MyInt = 2 Or MyInt = 3 Then...

----------------------------------------------------------------------

Need help finding an answer?

Try the search facilty ( or read FAQ222-2244 on how to get better results.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top