Hello. I'm attempting to create a program in C# that reads lines of text from a text file and stores them in a list. Then I have to compare each line to another equally large (50 lines) text file, and display the differences to the screen? Could anyone help? It would be appreciated. So far i've only been able to read the files.
TextReader tr = new StreamReader("file1.txt");
for (var i = 0; i < 1; i++)
{
tr.ReadLine();
}
TextReader tra = new StreamReader("file2.txt");
for (var f = 0; f < 1; f++)
{
tra.ReadLine();
}