The FloFileSize function returns the size in bytes of the specified on-disk file FileName.

The FileName must include the full path of the file.

Declaration: Function FloFileSize(const FileName : String) : Int64

The following is a simple illustration.

procedure ScriptEvent (var Value : variant);
var
aInt : Int64;
begin
//Returns the exact number of bytes for the file - in this case 2382
aInt := FloFileSize('C:\Test\CompareDate.txt');
LogInfo(FloatToStr(aInt)+' bytes.');
LogInfo('');
end;