Swift
Swift
Compute CRC32 of a File
Calculates the CRC32 of a file's contents and returns the 32-bit CRC as a hex string.Chilkat Swift Downloads
func chilkatTest() {
let zipCrc = CkoZipCrc()!
// Use a relative for absolute path to the file..
var crc: Int = zipCrc.fileCrc(path: "qa_data/hamlet.xml")
var hexStr: String? = zipCrc.toHex(crc: crc)
print("\(hexStr!)")
}