+ 1
Can anyone show me how to use File.ReadLine(I think...) in C#?
First of all TIA, My goal is to read a line from a .txt file then store it in a variable. And when using File.ReadLine multiple times would it read the first line over and over?or will it continue to the next line after the first line?
2 Answers
0
Actually I was looking for read a text file line by line not in a whole,example line 1 is read and is stored in a variable,then line 2 is read and is stored in a variable and so on...Anyways my question is unclear I guess