Compare text file contents to a string variable using C# Aaron Douglas243816-Oct-2013How can I compare a text file contents to a string variable using c#c#c# Updated on 16-Oct-2013
Anonymous User
16-Oct-2013var fileContents = File.ReadAllText(fileName);
return testString == filecontents;