At http://www.angusj.com/delphi/ there a TDiff for textfiles. However, the textfiles are CRC:ed int two integer lists that are compared. It uses "An O(NP) Sequence Comparison Algorithm". The thing is re-implemented in mORMot. I have a suspicion that it could be interesting to look at either implementation.   /D