I would like to compare lines 2 txt files. I think to do loops, but how? Here is my code to read in 2 files:
Code:StreamReader li = new StreamReader("list.txt" ); StreamReader li2= new StreamReader ("list2.txt" ); string li = li.ReadLine(); string li2 = li2.ReadLine(); while (li != null && li2 != null) { Console.Write(li); Console.Write(li2); }
Bookmarks