CompareFileContents

Returns True or False to indicate if two files are identical.

Syntax

CompareFileContents("FirstFile", "SecondFile")

Arguments

Argument Description
FirstFile Full path to the first file. See Identifying files and directories in statements for information about configuring full paths relative to the workspace or script directory.
SecondFile Full path to the second file. See Identifying files and directories in statements for information about configuring full paths relative to the workspace or script directory.

Return value

Value Description
True File contents are identical.
False File contents are different.

Example

If (CompareFileContents("C:\\Testing\\Output.txt", "C:\\TestDocuments\\DataSource\\Output.txt") = True) Then

PrintLn("The files are identical.")

Else

PrintLn("The files are different.")

End If