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

FileIsReadable

Indicates if the specified file name is readable.

Declaration

Source position: lazfileutils.pas line 54

function FileIsReadable(

  const AFilename: string

):Boolean;

Arguments

AFilename

  

File name to examine.

Function result

True when the specified file name is readable.

Description

FileIsReadable is a Boolean function which indicates if the specified file name is readable. For UNIX-like environments, FpAccess is used to get the return value. On Windows, the return value is the result from FileExistsUTF8. In short, the function is not really useful on the Windows platform where a suitable file attribute does not exist for the purpose.

See also

FileExistsUTF8

  

Indicates if the specified UTF-8-encoded file name exists.

FpAccess


Version 4.0 Generated 2025-05-03 Home