title: comparing 2 files in vbscript
body: <p>I have 2 files that I want to see if the contents inside are equal or not .Say one of them is a text file like Sample1.txt and the other one is a different file like main.css how can I compare the two to see if the contents inside are the same.</p>
  
  <p>I was thinking like </p>
  
  <pre><code>Content1 = FSO.OpenTextFile(sample.txt).ReadAll
  Content2 = FSO.OpenTextFile(main.css).ReadAll
  if(Content1 = Content2) Then
  
  
  End IF
  </code></pre>
  
  <p>Is there some better way of doing this.</p>
  
  <p>Thanks</p>