Sign in Join
FPDoc Onlineexperiment

FileOpenUTF8 function

In unit LazFileUtils

Opens the specified file name and returns its file handle.

Declaration

pascal
function FileOpenUTF8(const FileName: string; Mode: Integer): THandle

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

An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.