How to compare two text files and highlight the lines that are different in them?
<p>I want to write code for comparing two text files according to their texts. </p>

<p>Suppose,
file1 has </p>

<pre><code>abcd  
ssss  
ss dd ff gg  
</code></pre>

<p>and <code>file2</code> has </p>

<pre><code>abcd  
ss  
ss dd ff f  
</code></pre>

<p>Now I want the code which compare these two files and highlight the lines that are different and left the same. Just like winmerge. But I want only text file comparison.</p>
