Reads a file and computes the Cyclic Redundancy Check (CRC) value for all the data in the file.
<integer_variable>= File.ComputeCRC ( path )
Prerequisites
None
Parameters
path
A required String expression that contains the path to the file that is to be read.
Remarks
This function permits a GPL program to detect if a file has been changed or corrupted by computing the CRC based on all the data in the file. If the CRC value is the same as a value that was previously computed for a file, it is highly unlikely that the file data is corrupted or has been modified.
Examples
Dim crc As Integer crc = File.ComputeCRC(path) Console.Writeline("Computed CRC is " & Hex(crc))
See Also