[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
File_Size


Purpose   Returns the size of a file in bytes.

Decln.    File_Size(Filename:string):LongInt

Returns   Longint

Remarks   FileName is the source filename.

          If the file is not found, a file size of -1 is returned.

Example

VAR
  S : LONGINT;
BEGIN
    S := FILE_SIZE('C:\COMMAND.COM');
END;

See Also: Exist
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson