nn::fs::FileStream::FileStream Constructor
FileStream();
FileStream(
const wchar_t * pathName,
bit32 openMode
);
FileStream(
const char * pathName,
bit32 openMode
);
FileStream()
|
Constructor. |
FileStream(const wchar_t *, bit32)
|
A constructor that constructs an object and opens the specified file. |
FileStream(const char *, bit32)
|
A constructor that constructs an object and opens the specified file. |
FileStream()In the overloaded version without arguments, no file will be opened. Initialize must be called separately to perform file operations.
When opening a file, you can specify the openMode argument value as the bitwise OR of OPEN_MODE_READ (open in loading mode), OPEN_MODE_WRITE (open in writing mode), and/or OPEN_MODE_CREATE (create file if none exists). If you specify OPEN_MODE_CREATE, you must also specify OPEN_MODE_WRITE.
FileStream(const wchar_t *, bit32)The file at the specified path is opened in the specified OpenMode.
FileStream(const char *, bit32)The file at the specified path is opened in the specified OpenMode.
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