Quickest way to find a character different in two files...?

Soldato
Joined
26 Aug 2006
Posts
9,726
Location
62.156684,-49.781113
Got 2 text files which I need to find one character different, sounds simple enough - however they're each 15mb and 500000 lines.

Anyone think of the quickest way to find the character? They crash all the difference viewers I tried.
 
Got 2 text files which I need to find one character different, sounds simple enough - however they're each 15mb and 500000 lines.

Anyone think of the quickest way to find the character? They crash all the difference viewers I tried.


Can you not split it up somehow?
 
Tried all the free difference viewers I could find.

Ended up writing a bit of C# to do it myself. Doesn't work as well when there's potentially more differences though. Oh well, I'll have to cross that bridge when I come to it.
 
I would code a prog with 2 threads and read them both and compare step by step.

worse case difference is at the last character.

should be a few lines of code really and very fast as it is sequential.
 
Last edited:
Back
Top Bottom