SysFile::Open

SysFile::Open
SF_EXPORT bool Open(const String& path, int flags = Open_Read|Open_Buffered, int mode = Mode_ReadWrite);
Description

Open opens system file, and will fail if file is already open. For some platforms (PS2, PSP, Wii) buffering will be used even if Open_Buffered is not set because of these platforms' file system limitation.

Parameters
Parameters 
Description 
const String& path 
Path to the file. The path should be encoded as UTF-8 to support international languages. 
int flags = Open_Read|Open_Buffered 
Flags set to indicate whether file is opened as read or buffered. 
int mode = Mode_ReadWrite 
Mode set to indicate whether file is opened in read/write mode. 
Return Value

A Boolean value of 1 if the file is opened successfully, otherwise 0.