Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Compare 2 text files using checksum
Message
De
16/11/2009 16:52:08
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
15/11/2009 11:15:13
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01434733
Message ID:
01435044
Vues:
63
>>>>The SYS(2007) function can create crc16 or crc32 depending on the parameter passed. At most it can return 2^16-1 and 2^32-1 different values respectively. It's quite possible that 2 files can have the same checsum returned by SYS(2007). I would recomend to use one of the Hash algorithm that return longer digest of the file. You can use Craig Boyd's Vfpencryption.fll to generate MD5 or stronger hash.
>>>>
>>>Wouldn't that be 2^16 and 2^32 ?
>>
>>And it's significant how?
>
>Well, it's wrong

wife: When did you come home last night?

guy: At ten.

wife: The church bell rang only once...

guy: I know the guy who pulls the rope... he never rings the zero.

----

IOW, I guess the sys(2007) never returns "0", and that's the -1.

Wrong - SYS(2007,"",0,1) returns "0", and so does ?SYS(2007,"",-1,1) (which help says is the same anyway, the third parameter is ignored for 32 bit operation). So I'm immediately wrong, but will post this anyway... I never throw away a joke.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform