Compare text file contents to a string variable using C#

Total Post:20

Points:140

C# 
C#
 2048  View(s)
Ratings:
Rate this:

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

  1. 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

Please check, If you want to make this post sponsored

You are not a Sponsored Member. Click Here to Subscribe the Membership.