Whats the best strategy to do this? I started by reading in all the lines into two list (a list for each text file). I then used 2 while loops, cycling through the lists and if they found matches, they would delete the matching lines from the lists. I was then left with only the lines that didn't match.
This works fine, except when it comes to large files. I'm trying to compare two files of 500kb, which is about 13,000 lines of text. The above strategy just cant handle that many lines.
Any ideas?
This works fine, except when it comes to large files. I'm trying to compare two files of 500kb, which is about 13,000 lines of text. The above strategy just cant handle that many lines.
Any ideas?