|Home » Technical Support » DBISAM Technical Support » Support Forums » DBISAM General Discussion » View Thread|
|Messages 1 to 3 of 3 total|
|OT: File compare|
|Tue, Nov 20 2007 2:01 PM||Permanent Link|
You guys are sooo good
I hope I am allowed to ask for a few pointers on the following.
One of my apps submits database records over the Internet in simple csv
format to a gateway. The gateway holds the file and informs the
intended reipient that it is available for download and import into
another of my apps.
It is valid for a sender to submit more than once - in which case the
gateway app adds a serial number to the filename.
But, some users are re-sending identical files and I could do with
eliminating those at the gateway. Any difference is good enough cause
to accept the subsequent file.
So is there:
* a simple file compare or diff component available (D10)
* a better way such as including a check sum
or do I just roll my own byte/string compare?
The csv files are not large, just a few K each.
|Tue, Nov 20 2007 4:30 PM||Permanent Link|
"Malcolm" <email@example.com> wrote in message
> or do I just roll my own byte/string compare?
Simple byte compare and exit as soon as a difference is found.
I assume you are only comparing with the latest uploaded file. If you want
to compare with all previous versions a checksum may improve it slightly.
|Tue, Nov 20 2007 5:11 PM||Permanent Link|
Uffe Kousgaard wrote:
> I assume you are only comparing with the latest uploaded file. If you
> want to compare with all previous versions a checksum may improve it
Yes, there should never be more than three or four and I believe I need
only compare with the immediately preceeding one.