bungpeng Posted July 1, 2003 Posted July 1, 2003 To compare 2 text files and display the differential of them. Is there any source for it? Or any good ideas about it? ;) Quote
*Experts* mutant Posted July 1, 2003 *Experts* Posted July 1, 2003 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. :) Quote
Moderators Robby Posted July 1, 2003 Moderators Posted July 1, 2003 If you want your end result to function like Source Safe does, you have a lot of work ahead. Quote Visit...Bassic Software
bungpeng Posted July 1, 2003 Author Posted July 1, 2003 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? Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.