Microsoft Foundation Classes (mfc.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
class CStdioFile
CFile                                       Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  Description
 
  A CStdioFile object represents a C run-time stream file as opened by the
  fopen 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 (0x0A, 0x0D) is sent to the file. When
  you read, the byte pair (0x0A, 0x0D) is translated to a single 0x0A
  byte.
 
  #include <afx.h>
 
  Comments
 
  The following CFile functions are not implemented for CStdioFile.
 
  ■   Duplicate
 
  ■   LockRange
 
  ■   UnlockRange
 
  If you call these functions on a CStdioFile, you will get a
  CNotSupportedException.
 
  Public Members
 
  Data Members
 
  m_pStream   A data member containing a pointer to an open file.
 
  Construction/Destruction
 
  CStdioFile   Constructs a CStdioFile object from a path or file
                 pointer.
 
  ~CStdioFile   Destroys the object and closes the file if it is open.
 
  Text Read/Write
 
  ReadString    Reads a single line of text.
 
  WriteString   Writes a single line of text.
 
 
                                     -♦-