FileCreateUTF8 function
Creates the specified file and returns its file handle.
Declaration
function FileCreateUTF8(const FileName: string): THandle; overloadArguments
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
- UTF8ToSys
- FileCreate
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
