nn::fs::FileOutputStream::TryInitialize Member Function

Syntax

nn::Result TryInitialize(
     const wchar_t * pathName,
     bool createIfNotExist
);

Arguments

Name Description
in pathName Path of the file to open
createIfNotExist

Return Values

Description

Opens the specified file.

The file at the specified path is opened write-only and becomes writable. A file is created and opened write-only if it does not exist at the specified path and the createIfNotExist argument has been set to TRUE. 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.


CONFIDENTIAL