usvpn Posted September 7, 2010 Posted September 7, 2010 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 :) Quote
Leaders snarfblam Posted September 7, 2010 Leaders Posted September 7, 2010 I recommend you look at the System.IO.File.ReadAllLines fuction. It returns an array where each element is a line from the file. Quote [sIGPIC]e[/sIGPIC]
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.