Solved

Difference between files

Posted on 2003-11-28
5
234 Views
Last Modified: 2010-04-05
I looking for the alhgoritm for compating two files, showing new and erased chars/lines. The same as calling 'diff' does.
I need a working soultion for Delphi.
0
Comment
Question by:Lukasz Lach
  • 3
5 Comments
 
LVL 7

Expert Comment

by:sftweng
ID: 9839298
Have a look at FreeVCS - it has a good diff-style utility. http://www.freevcs,org
0
 
LVL 5

Author Comment

by:Lukasz Lach
ID: 9839320
nope, it's dll based.
0
 
LVL 7

Expert Comment

by:sftweng
ID: 9839346
But you could get the source code for their utility from there I think.
0
 
LVL 33

Expert Comment

by:Slick812
ID: 9847313
what kind of comparing are you needing? I do not know the  'diff'  program.  You could just run through both files and see if any bytes are not the same, however if you want to compare the (I guess text) file data to find chunks that  may have been removed, it can get kind of complicated
0
 
LVL 7

Accepted Solution

by:
sftweng earned 300 total points
ID: 9847369
You will find a free TDiff component and utility (Delphi) at Angus Johnson's web site http://www.users.on.net/johnson/delphi/
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now