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

FileOpenUTF8

Opens the specified file name and returns its file handle.

Declaration

Source position: lazfileutils.pas line 130

function FileOpenUTF8(

  const FileName: string;

  Mode: Integer

):THandle;

Arguments

FileName

  

File name opened in the function.

Mode

  

File access mode requested for the opened file.

Function result

File handle for the specified file.

Description

FileOpenUTF8 is a THandle function used to open the UTF-8-encoded file name in FileName, and return its file handle. FileOpenUTF8 converts the file name to system format by calling UTF8ToSys, and calls the FileOpen routine in the SysUtils unit to get the file handle for the opened file.

See also

UTF8ToSys

FileOpen


Version 3.2 Generated 2024-02-25 Home