python get diff from files
<p>How to compare contents of two files saying if the content in file1 is present in file2 in some other format how can we detect it  </p>

<p>Ex:file1</p>

<pre><code>        import datetime,os
        #include&lt;stdio.h&gt;
        import java.io.*;
        import mymodule,urllib,
        #include&lt;conio.h&gt;
</code></pre>

<p>File2:  </p>

<pre><code>        #include&lt;stdio.h&gt;
        import java.io.*;
        import mymodule,logging,random,traceback,urllib,os
        #include&lt;conio.h&gt;

       f = open('workfile','r+')
       f.read()  

       f1 = open('workfile1','r+')
       f1.read()  

       if(contents of file present in file2):
       {
              print found
       }
       else:
        {
              print not found
        }    
</code></pre>
