[Overview][Constants][Types][Procedures and functions][Variables][Index] Reference for unit 'LazFileUtils' (#lazutils)

FileSizeUtf8

Gets the size for the specified file name.

Declaration

Source position: lazfileutils.pas line 135

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

FindFirst


Version 4.0 Generated 2025-05-03 Home