Hello. I searched a lot of algorithms, and I couldn't find that one I need 
I've got 2 txt file. In 1st I have:
file1 176
file2 209
file3 159392
file4 405617
file5 405886
file6 516485
file1 176
file2 209
file3 159392
file4 405617
file5 405886
file6 516485
To copy to clipboard, switch view to plain text mode
And is 2nd:
file1 176
file4 405617
file3 159392
file8 49556
file2 209
file1 176
file4 405617
file3 159392
file8 49556
file2 209
To copy to clipboard, switch view to plain text mode
And I want to compare these files, to get only changes, so in this example it should be:
file5 405886
file6 516485
file8 49556
file5 405886
file6 516485
file8 49556
To copy to clipboard, switch view to plain text mode
1st part of line is name of file, and 2nd is size, so I can split them, put into array... anything.
Only way I found to do it, is to put these files to array, take 1 line, and seek full 2nd array to find it, take next line and again. And vice versa.
Is it possible to make it easier?
Bookmarks