|Important||This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.|
Updated: May 2009
Represents a C run-time stream file as opened by the run-time function fopen.
Stream files are buffered and can be opened in either text mode (default) or binary mode.
Text mode provides special processing for carriage return–linefeed pairs. When you write a newline character (0x0A) to a text-mode CStdioFile object, the byte pair (0x0D, 0x0A) is sent to the file. When you read, the byte pair (0x0D, 0x0A) is translated to a single 0x0A byte.
Files larger than 232 bytes are not handled correctly by the CStdioFile class. To work with files larger than 232 bytes, use the CFile class.