+ 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?

8th Dec 2017, 11:42 AM
Aaron Kwek
Aaron Kwek - avatar
2 Answers
8th Dec 2017, 12:14 PM
👑 Prometheus 🇾🇬
👑 Prometheus 🇾🇬 - avatar
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
9th Dec 2017, 6:48 AM
Aaron Kwek
Aaron Kwek - avatar