CompareFile Method  
 

Compare the data in a file with a stored object.

Syntax

object.CompareFile( ObjectLabel, LocalFile )

Parameters

ObjectLabel
A string which specifies the label of the object that should be compared against the contents of the buffer.
LocalFile
A string which specifies the name of the file to compare against the contents of the stored object. If no path is specified in the file name, the current working directory will be used.

Return Value

A value of True is returned if the contents of the file matches the contents of the specified object. Otherwise, a value of False is returned and the LastError property will return the specific cause of the failure.

Remarks

The CompareFile method performs a binary comparison of the data in the file with the contents of the storage object on the server. The contents of the file must be identical to the contents of the stored object or the method will fail.

If you need to compare the contents of a file with a string or byte array, use the CompareData method.

See Also

CompareData Method, GetData Method, PutData Method