Sign in Join
FPDoc Onlineexperiment

FileSizeUtf8 function

In unit LazFileUtils

Gets the size for the specified file name.

Declaration

pascal
function FileSizeUtf8(const Filename: string): Int64

Arguments

Filename

File name examined in the function.

Function result

Size of the file on the local file system.

Description

FileSizeUTF8 is an Int64 function used to get the size for the file specified in the UTF-8-encoded Filename argument. FileSizeUTF8 calls Utf8ToSys to convert the value in Filename to the system string type type, and calls the FindFirst routine in the SysUtils unit to get the size for the specified file name.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.