Martin Vajsar wrote:
I assume this is just an exercise. If it is not, you should use the File Compare (fc.exe) and perhaps the sorter (sort.exe) that comes with Windows.
One problem of your code is that you're re-reading the whole Jupiter file for every line read from Venus file. That's going to take ages, especially as you output every line you read to standard output.
You might also avoid sorting, read all lines from the files into sets and compare these sets.