Delphi IDE (239)
Windows with Delphi (38)
Visual Basic (3539)
Are 2 files identical? Do a 32bit CRC sum..
3 comments. Current rating: (2 votes). Leave comments and/ or rate it.
To determine, whether 2 files are identical, I first would compare their sizes.
If they are identical, I would calculate a 32bit CRC sum for each of them and compare the results.
Someone asked me:
Answer: No, a CRC might even tell you where the difference was (if the files are really that short).
function ComputeFileCRC32(const FileName : string): LongInt;
Since the polynome table is rather long, you may download the pascal file: crc32.zip (2.2kB).