Hi,
Check this
string[] names1 = System.IO.File.ReadAllLines(@"../../../names1.txt");
string[] names2 = System.IO.File.ReadAllLines(@"../../../names2.txt");
IEnumerable<string> differenceQuery =
names1.Except(names2);
Console.WriteLine("The following lines are in names1.txt but not names2.txt");
foreach (string s in differenceQuery)
Console.WriteLine(s);
Console.WriteLine("Press any key to exit");
Console.ReadKey();</string>
Best Luck