Compare text file contents to a string variable using C#

Total Post:20

Points:140
C# 
C#
 1848  View(s)
Ratings:
Rate this:

How can I compare a text file contents to a string variable using c#

  1. Post:51

    Points:359
    Re: Compare text file contents to a string variable using C#

    var fileContents = File.ReadAllText(fileName);

    return testString == filecontents;

      Modified On Apr-03-2018 05:22:53 AM

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!