Sign in Join
FPDoc Onlineexperiment

FileCreateUTF8 function

In unit LazFileUtils

Creates the specified file and returns its file handle.

Declaration

pascal
function FileCreateUTF8(const FileName: string): THandle; overload

Arguments

FileName

File name created in the function.

Function result

File handle for the file created in the function.

Description

FileCreateUTF8 is a THandle function used to created the file specified in the UTF-8-encoded FileName argument, and returns the file handle for the newly created file. Overloaded variants of the function are provided which allow additional arguments that specify the file sharing mode, or access rights for the newly created file.

FileCreateUTF8 calls UTF8ToSys to convert the file name to its system representation, and calls the FileCreate routine in the SysUtils unit to create the file and get its file handle.

See also

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