Difference between 2 text files with uknown size
<p>In hope to find a solution, I lost couple of days but no success! I have two text files with many lines. One file can contains thousands lines with numbers, for example: 79357795
79357796
68525650.</p>

<p>The second file also contains numbers, but not too much, maybe one hundred of lines (again one number per line). I tried some "algorithms" but no success. Now, my questions is: Can I check first line from first file with all lines from second file, after that, to check second line from first file with all lines from second file and so on up to the end of the file? And as a result, I want to save the difference between this two files in third files. Thank you all for responses and sorry for my baddest english. :)</p>

<p>PS: Oh yes, I need to do this in Python. </p>

<p>More details:
first_file.txt contains:</p>

<pre><code>79790104
79873070
69274656
69180377
60492209
78177852
79023241
69736256
68699620
79577311    
78509545
69656007
68188871
60643247
78898817
79924105
79684143    
79036022
69445507
60605544
79348181
69748018
69486323
69102802
68651099
</code></pre>

<p>second_file.txt contain:</p>

<pre><code>78509545    
69656007    
68188871    
60643247
78898817    
79924105    
79684143    
79036022    
69445507
60605544    
79348181    
69748018    
69486323    
69102802
68651099
79357794
78953958
69350610
78383111
68629321
78886856
</code></pre>

<p>third_file.txt need to contain what number not exist in first_file.txt but exist in second file, in this case:</p>

<pre><code>79357794
78953958
69350610
78383111
68629321
78886856
</code></pre>
