nn::fs::FileStream::TryInitialize Member Functionnn::Result TryInitialize( const wchar_t * pathName, bit32 openMode ); nn::Result TryInitialize( const char * pathName, bit32 openMode );
| TryInitialize ( const wchar_t *, bit32 ) | Opens the specified file. |
| TryInitialize ( const char *, bit32 ) | Opens the specified file. |
The file at the specified path is opened in OpenMode. A file is created and opened write-only if it does not exist at the specified path. If an error occurred while trying to open the file, it returns that error. Do not call this function if this object has already opened a file.
For details on the openMode argument, see FileStream::FileStream.
The file at the specified path is opened in OpenMode. A file is created and opened write-only if it does not exist at the specified path. This function returns any error that occurs while it is opening the file.
Note: This function uses a large amount of buffer space on the stack because it converts the path name from a multibyte character string into a wide character string. Pay careful attention to the stack size.
CONFIDENTIAL