nlib
|
This sample demonstrates reading text files using nn::nlib::FileInputStream
. It opens a file, reads from the stream, and displays the content to the console.
The text is read via a nn::nlib::TextReader
object, enabling the use of data converted from UTF-8 to UTF-32. To directly read binary data, direct use is made of a stream object for reading.
The process is the same when streams other than file streams are used for reading; the only difference is the stream being used.
© 2013, 2014, 2015 Nintendo Co., Ltd. All rights reserved.