Read File

usvpn

Freshman
Joined
Apr 19, 2010
Messages
45
Hi,
I have a text file with exactly 2 lines!
I can read the whole file with System.IO.File.ReadAllText, but this will return both lines!
How should I get the 1st and 2nd line separately?
Thank you :)
 
I recommend you look at the System.IO.File.ReadAllLines fuction. It returns an array where each element is a line from the file.
 
Back
Top