OpenFileEx opens a file by relying on OpenFile, but with a customizable log. If the pointer is 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 |
Log to receive failure messages. |
int flags = FileConstants::Open_Read|FileConstants::Open_Buffered |
Flags set for opening the file with buffering. See FileConstants::OpenFlags. |
int mode = FileConstants::Mode_ReadWrite |
Modes set for file operations. See FileConstants::Modes. |
A File pointer to the opened file, or 0 value for failure.