Sample code for 30+ languages & platforms
B4X

Compute CRC32 of a File

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

Chilkat B4X Downloads

B4X
Dim zipCrc As ChilkatZipCrc
zipCrc.Initialize("zipCrc")
'  Use a relative for absolute path to the file..
Dim crc As Int = zipCrc.FileCrc("qa_data/hamlet.xml")
Dim hexStr As String = zipCrc.ToHex(crc)
Log(hexStr)