File difference algorithm

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • paul

    #1

    File difference algorithm

    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
  • Herfried K. Wagner [MVP]

    #2
    Re: File difference algorithm

    "paul" <paul@xxx.co.uk > schrieb:[color=blue]
    > anyone got an algorithm / source code to compare two text files and show
    > differences & matches.[/color]

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

    --
    M S Herfried K. Wagner
    M V P <URL:http://dotnet.mvps.org/>
    V B <URL:http://classicvb.org/petition/>

    Comment

    • paul

      #3
      Re: File difference algorithm

      Herfried K. Wagner [MVP] wrote:[color=blue]
      > "paul" <paul@xxx.co.uk > schrieb:
      >[color=green]
      >> anyone got an algorithm / source code to compare two text files and
      >> show differences & matches.[/color]
      >
      >
      > <URL:http://www.palmbytes.d e/content/dotnet/ndiff.htm>
      >[/color]

      Sorry, appears to be corrupt

      Thanks
      Paul

      Comment

      • grigsoft@gmail.com

        #4
        Re: File difference algorithm

        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
        Powerful file compare and folders synchronization utilities: Synchronize It!, Compare It!

        Compare It! + Synchronize It! - files and folders comparison never was
        easier!

        Comment

        • grigsoft@gmail.com

          #5
          Re: File difference algorithm

          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
          Powerful file compare and folders synchronization utilities: Synchronize It!, Compare It!

          Compare It! + Synchronize It! - files and folders comparison never was
          easier!

          Comment

          Working...