Hello,
I have 2 questions:
1. I know I can use System.IO.File.ReadAllText() to read the contents of a text file, but that's unneccessary, I just need to read the 1st line of my text file, how can I do it?
2. Also, how can I get the total number of lines in my text file?
Thanks for your help.
I have 2 questions:
1. I know I can use System.IO.File.ReadAllText() to read the contents of a text file, but that's unneccessary, I just need to read the 1st line of my text file, how can I do it?
2. Also, how can I get the total number of lines in my text file?
Thanks for your help.