Using Streamreader

Joined
Feb 22, 2005
Messages
7
Programming Experience
Beginner
I have a csv file and I want to read the 2nd row into a string using a streamreader but not sure how to get to the second one on file?

The file looks like the following:

0001
0002
 
Call ReadLine once doing nothing with the line. Call ReadLine again to get to the 2nd line of the file.

VB.NET:
sr.ReadLine() 'Do nothing with this line
yourVariable = sr.ReadLine()
'Process yourVariable
 
Back
Top