Possible to read a specific line on a text file?

PlayKid

Active member
Joined
Jun 25, 2005
Messages
38
Dear all,

I am trying to read something from a text file, and each line representing different thing, how do I do that?

Thanks

PlayKid
 
PlayKid said:
Dear all,

I am trying to read something from a text file, and each line representing different thing, how do I do that?

Thanks

PlayKid
:mad: Do you have MSDN help installed???

search "Read Text From A File"
 
Take a look for any book on amazon that covers OOP (Object Oriented Programming) - probably want to start with a beginners book; looking at your other posts this will help you with a lot of your questions - no offense, just trying to offer some guidance.
 
Make sure your directory in which DATA.txt is located, is correct.

the first "sr.ReadLine", reads the first line of the DATA.txt
the 2nd "sr.ReadLine", reads the 2nd,
and so on ...
 

Attachments

Last edited by a moderator:
Back
Top