prg_file_path_create()
Abstract
Creates a file with the given name and path.
Syntax
prg_file_path_create (path_name, options)
| Argument | Type | Description |
|---|---|---|
path_name |
const char * |
Full path name of the file to create. |
options |
int |
Bit mask of supported options (see Details) |
Return Type
PrgT_Compcode
PrgC_Compcode_Success if the path was created successfully; PrgC_Compcode_Failure otherwise.
Header
prg_file_funcs.h
Details
This function converts path_name to the correct OS format, if necessary (changing “/” and “\” as needed), then creates an empty file with write permission. If the specified directory hierarchy does not exist, it is created. An existing file of the same name will be overwritten.
options should be one of the following symbolic constants:
PRGC_FILE_PATH_CREATE_OPT_NONE—no optionsPRGC_FILE_PATH_CREATE_OPT_DIRECTORY—create a directory instead of a file