COMPARE TEXT FILE CONTENTS TO A STRING VARIABLE USING C#

Aaron Douglas

Total Post:20

Points:140
Posted by  Aaron Douglas
C# 
C#
 1526  View(s)
Ratings:
Rate this:

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

  1. Hugh Jackman

    Post:52

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

    var fileContents = File.ReadAllText(fileName);
    return testString == filecontents;

Answer

NEWSLETTER

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