nn::hio::CTR::HostFile Class

Header file: nn/hio.h

Syntax

class HostFile

Description

Class that represents files in the host file system. It provides the ability to read from and write to files.

Enumerated Types

SeekType Group of constants indicating starting points for file seek operations.
AccessMode Group of constants indicating file access modes.
OpenDisp Group of constants indicating the behavior to use when a file is opened.

Member Functions

HostFile Constructor. You must make a separate call to Open to open the file you will be working with.
~HostFile Destructor. Closes a file if it is open.
Open Opens the specified file.
Close Closes a file.
Read Reads the specified amount of data from a file into a buffer, and returns the result of the operation.
Write Writes the specified amount of data from a buffer to a file.
Seek Changes the starting position for read and write operations.
SetSize Changes the size of a file.
IsExist Checks whether a file exists.

Revision History

2010/03/31
Initial version.

CONFIDENTIAL