I have written a small program to read line from a text but facing a problem when getting the output. As I just get the following:
string lines = System.IO.File.ReadAllLines(@"C:\Users\Engineer\Desktop\MyFile.txt");
foreach(string line in lines)
In each iteration of the loop, you're writing the array of lines to the output.
▼ console.WriteLine("\t"+ lines);
Remove the 's'.