Pascal Scripting: FileSize


function FileSize(const Name: String; var Size: Integer): Boolean;


Sets Size to the size of the specified file in bytes. Returns True if the file size was set successfully and False otherwise. Only supports file sizes smaller than 2 GB. To get all 64 bits of the file size, use FindFirst/FindClose instead.