Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Compare 2 text files using checksum
Message
From
14/11/2009 03:26:11
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01434733
Message ID:
01434738
Views:
90
This message has been marked as a message which has helped to the initial question of the thread.
I check both file size and checksum. It's only 99.99% safe, but that's fine for me.

>Hi all
>
>I can use FILETOSTR(), low level file access or FC.exe to compare 2 text files and know if they are same. I was curious if SYS(2007, FILETOSTR("MyFile.txt")) help me in this matter by comparing with a previously generated checksum value.
>
>My concern being small, say a single character, change to a big text file will guaranteed return a different checksum value?
>
>UPDATE, just thought this question. What are the chances that 2 different text files might return a same value?
>
>Please advise.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform