Delphi IDE (239)
Windows with Delphi (38)
Visual Basic (3539)
New related comments
Number of comments in the last 48 hours
The meaning of Runtime Error 217
Closing Internet Explorer (IE) from Delphi
Read and write I/O ports
Use large buffers very easy
Are 2 files identical? Do a 32bit CRC sum..
4 comments. Current rating: (3 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).