Home All Groups Group Topic Archive Search About

File difference algorithm

Author
16 May 2006 7:32 AM
paul
Hello

anyone got an algorithm / source code to compare two text files and show
differences & matches.

Compare by line would be fine, either lines are the same or they are not.

Kind of like WinDiff...

Thanks
Paul

Author
16 May 2006 7:42 AM
Herfried K. Wagner [MVP]
"paul" <p***@xxx.co.uk> schrieb:
> anyone got an algorithm / source code to compare two text files and show
> differences & matches.

<URL:http://www.palmbytes.de/content/dotnet/ndiff.htm>

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>
Author
16 May 2006 7:33 PM
paul
Herfried K. Wagner [MVP] wrote:
> "paul" <p***@xxx.co.uk> schrieb:
>
>> anyone got an algorithm / source code to compare two text files and
>> show differences & matches.
>
>
> <URL:http://www.palmbytes.de/content/dotnet/ndiff.htm>
>

Sorry, appears to be corrupt

Thanks
Paul
Author
17 May 2006 6:03 AM
grigsoft
Windiff is available in source code, Winmerge is open source. Classical
copmarison algorirhm is described in Mayers' "An O(ND) Difference
Algorithm and Its Variations" article, which you can find in internet.
I haven't seen any VB code for this.

Igor Green
http://www.grigsoft.com/
Compare It! + Synchronize It! - files and folders comparison never was
easier!
Author
17 May 2006 6:03 AM
grigsoft
Windiff is available in source code, Winmerge is open source. Classical
comparison algorirhm is described in Mayers' "An O(ND) Difference
Algorithm and Its Variations" article, which you can find in internet.
I haven't seen any VB code for this.

Igor Green
http://www.grigsoft.com/
Compare It! + Synchronize It! - files and folders comparison never was
easier!