The 'FileCompare' function checks whether two specified files are equal.
int FileCompare(string file_name1, string file_name2);
Parameters
string file_name1 : first file name including the absolute path
string file_name2 : second file name including the absolute path
Return Value
result (1 = The two files are equal. 0 = The two files are not equal.)
Example
result = @FileCompare("C:\\TEXT1.TXT", "D:\\TEXT2.TXT");
if(result == 1)
{
@Message("The two files are equal.");
}
else
{
@Message("The two files are not equal.");
}
Description : The first line compares 'C:\\TEXT1.TXT' to 'D:\\TEXT2.TXT' and stores the result in the variable named 'result'. If 'result' is '1', 'The two files are equal' message will be displayed on the screen. If 'result' is '0', 'The two files are not equal' message will be displayed on the screen.