CStdioFile

A CStdioFile object represents a C run-time stream file as opened by the run-time function . Stream files are buffered and can be opened in either text mode (the 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 (0x0A, 0x0D) is translated to a single 0x0A byte.

The CFile functions Duplicate, LockRange, and UnlockRange are not supported for CStdioFile.

If you call these functions on a CStdioFile, you will get a CNotSupportedException.

For more information on using CStdioFile, see the article in Visual C++ Programmer’s Guide and in the Run-Time Library Reference.

#include <afx.h>

Class MembersBase ClassHierarchy Chart

See Also   CFile, CFile::Duplicate, CFile::LockRange, CFile::UnlockRange, CNotSupportedException