nn::fs::FileInputStream::TryInitialize Member Function

Syntax

Result TryInitialize(
     const wchar_t * pathName
);

Arguments

Name Description
in pathName Path of the file to open.

Return Values

Returns the result of the operation.

Description

Tries to open the specified file.

It opens the file at the specified path with read-only access, and enables reading. Do not call this function if this object has already opened a file.

If an error occurred while trying to open the file, it returns that error.


CONFIDENTIAL