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

FileCreateUTF8

Creates the specified file and returns its file handle.

Declaration

Source position: lazfileutils.pas line 131

function FileCreateUTF8(

  const FileName: string

):THandle; overload;

function FileCreateUTF8(

  const FileName: string;

  Rights: Cardinal

):THandle; overload;

function FileCreateUtf8(

  const FileName: string;

  ShareMode: Integer;

  Rights: Cardinal

):THandle; overload;

Arguments

FileName

  

File name created in the function.

Function result

File handle for the file created in the function.

Arguments

FileName

  

File name created in the function.

Rights

  

File access rights for the new file.

Arguments

FileName

  

File name created in the function.

ShareMode

  

File sharing mode for the new file.

Rights

  

File access rights for the new file.

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


Version 3.2 Generated 2024-02-25 Home