Sample code for 30+ languages & platforms
Xbase++

Compute CRC32 of a File

Calculates the CRC32 of a file's contents and returns the 32-bit CRC as a hex string.

Chilkat Xbase++ Downloads

Xbase++
LOCAL oZipCrc
LOCAL nCrc
LOCAL cHexStr

oZipCrc := CreateObject("Chilkat.ZipCrc")
//  Use a relative for absolute path to the file..
nCrc := oZipCrc:FileCrc("qa_data/hamlet.xml")
cHexStr := oZipCrc:ToHex(nCrc)
? cHexStr

oZipCrc:destroy()