FileOpener::OpenFileEx

FileOpener::OpenFileEx
virtual File* OpenFileEx(const char* purl, Log * plog, int flags = FileConstants::Open_Read|FileConstants::Open_Buffered, int mode = FileConstants::Mode_ReadWrite);
Description

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
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
Return Value

A File pointer to the opened file, or 0 value for failure.