DataFlex
DataFlex
Compute CRC32 of a File
Calculates the CRC32 of a file's contents and returns the 32-bit CRC as a hex string.Chilkat DataFlex Downloads
Use ChilkatAx-win32.pkg
Procedure Test
Handle hoZipCrc
Integer iCrc
String sHexStr
Get Create (RefClass(cComChilkatZipCrc)) To hoZipCrc
If (Not(IsComObjectCreated(hoZipCrc))) Begin
Send CreateComObject of hoZipCrc
End
// Use a relative for absolute path to the file..
Get ComFileCrc Of hoZipCrc "qa_data/hamlet.xml" To iCrc
Get ComToHex Of hoZipCrc iCrc To sHexStr
Showln sHexStr
End_Procedure