Difference between revisions of "GetFileSize"
From SCAR Divi Manual
(Created page with "==Definition== <source lang="scar" lines="false"> function GetFileSize(FileName: string): Int64; </source> ==Availability== SCAR Divi 3.21 > Current ==Description== Returns the...") |
(No difference)
|
Latest revision as of 14:35, 3 July 2011
Definition
function GetFileSize(FileName: string): Int64;
Availability
SCAR Divi 3.21 > Current
Description
Returns the file size of the file given by FileName in bytes.
Example
var f: Integer; begin f := Rewritefile(LogsPath + 'Test.txt', False); WriteFileString(f, 'Hello World!'); CloseFile(f); WriteLn(GetFileSize(LogsPath + 'Test.txt')); DeleteFile(LogsPath + 'Test.txt'); end.
Output:
12