title: Compare 2 text file contents in c#
body: <p>I have 2 text file in C# say: <code>File - A</code> &amp; <code>File - B</code>. I want to compare both file contents and if there is any content found in <code>File - A</code> which is not present in <code>File - B</code> then i want to put that content in File - B at the same location where it is in <code>File - A</code>.</p>
  
  <pre><code>   File - A                                        File - B
  
  This is the example text.                         This is text.
  </code></pre>
  
  <p>Now if we compare above 2 file contents then the output should be :</p>
  
  <pre><code>                           File - B
  
                         This is the example text.
  </code></pre>
  
  <p>So if is there any method in c# which can do this for me then please let me know?</p>