COMPARE TEXT FILE CONTENTS TO A STRING VARIABLE USING C#

Aaron Douglas

Total Post:20

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

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

  1. Hugh Jackman

    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!