Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 3 of 3 total
Thread OT: File compare
Tue, Nov 20 2007 2:01 PMPermanent Link

"Malcolm"
You guys are sooo good Surprised

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.

Malcolm

--
Tue, Nov 20 2007 4:30 PMPermanent Link

"Uffe Kousgaard"
"Malcolm" <malcolm@spam.will.bounce> wrote in message
news:CDBBE0B9-0506-4897-8196-F975C1D88031@news.elevatesoft.com...

> 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 PMPermanent Link

"Malcolm"
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
> slightly.

Thanks..

Yes, there should never be more than three or four and I believe I need
only compare with the immediately preceeding one.

--
Image