nlib
|
This sample demonstrates the writing of text files using nn::nlib::FileOutputStream
. It reads a file written via a stream and displays the content on the console.
Writing text through a nn::nlib::TextWriter
object allows the text to be converted from UTF-16 to UTF-8 before being written. The BOM is not written. In addition, newline characters are integrated into CRLF.
To directly write binary data, direct use is made of a stream object for writing.
The process is the same when streams other than file streams are used for reading; the only difference is the stream being used.
© 2012-2017 Nintendo Co., Ltd. All rights reserved.