OpenFileEx opens file with customizable log by relying on OpenFile. If not null, the log will receive error messages on failure.
Parameters |
Description |
const char* purl |
Url to the file. The url should be encoded as UTF-8 to support international file names. |
Log * plog |
Pointer to the log to receive error messages. |
int flags = FileConstants::Open_Read|FileConstants::Open_Buffered |
Flags set for opening file with buffering. See FileConstants::OpenFlags. |
int mode = FileConstants::Mode_ReadWrite |
Flags set for performing file operations. See FileConstants::Modes. |
A File pointer to the opened file.