Text file compare

bungpeng

Well-known member
Joined
Sep 10, 2002
Messages
906
Location
Malaysia
To compare 2 text files and display the differential of them.

Is there any source for it? Or any good ideas about it? ;)
 
Go through it character by character, its not so bad :). Read both of them to an array, first check if the array is the same size, if not there the number of character is not equal so the file is not the same. Then go through all and compare them in a for next loop. If something doesnt match then add it to some kind of a list box or textbox.
:)
 
I not sure how Source Safe does, but I know it needs a lot of work, not like what mutant said, anyway, TQ your reply mutant.

For example: if second text file actually is same with first one, the only different is there are few new lines in middle of the original text, so I just want to highlight those extra lines.... (this is one of the example)

Any ideas?
 


Write your reply...
Back
Top