FileDiffEngine Example
The idea of this engine is to parse files with the same record layout and do some diff over the records.
To work with the DiffEngine your record must implement the interface IComparableRecord
For example if you want to get the new customers based on two customers files you can use:
In the res array you have all the records in the file customersnew.txt that dont exists in the customersold.txt file
Now you may need to extract the records that apeer in both files:
In the res array you have all the records in the file customersnew.txt that exists in the customersold.txt file
And how many lines you need to write the diff to other file... you are right one line !!
Enjoy it !!!
See also
Must Read - Quick Start Guide - Attributes
List - F.A.Q. - Examples of
Use - Contacts & Credits - Donations