Sample code for 30+ languages & platforms
Tcl

Example: Crypt2.CrcFile method

Demonstrates how to call the CrcFile method.

Chilkat Tcl Downloads

Tcl

load ./chilkat.dll

set crypt [new_CkCrypt2]

set filePath "c:/temp/someFile.dat"

set crc32 [CkCrypt2_CrcFile $crypt "crc-32" $filePath]
puts "$crc32"

set crc8 [CkCrypt2_CrcFile $crypt "crc8" $filePath]
puts "$crc8"

delete_CkCrypt2 $crypt