Sample code for 30+ languages & platforms
Tcl

Compute CRC32 of a File

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

Chilkat Tcl Downloads

Tcl

load ./chilkat.dll

set zipCrc [new_CkZipCrc]

# Use a relative for absolute path to the file..
set crc [CkZipCrc_FileCrc $zipCrc "qa_data/hamlet.xml"]
set hexStr [CkZipCrc_toHex $zipCrc $crc]
puts "$hexStr"

delete_CkZipCrc $zipCrc