File_Checksum()

Parent Previous Next

Syntax

File_Checksum(FileName As sSdTempName1), Dword

Parameters

FileName — the file to checksum


Return value — CRC32 checksum

             $FFFFFFFF if the file couldn't be opened

              

Computes the standard CRC32 checksum of a file's contents


Computes the standard CRC32 checksum of a file's contents, using a standard CRC-32/ISO-HDLC algorithm, the same one used by Ethernet FCS, PKZIP, gzip,  PNG, and a 256-entry lookup table - 1KB flash - only linked in if this Proc is actually called.

Example

    Dim dTemp As Dword

    dTemp = File_Checksum("temp.txt")

Created with the Personal Edition of HelpNDoc: Maximize Your Documentation Capabilities with HelpNDoc's Project Analyzer