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.
CFile::Write
CFile                                       Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  virtual void Write( const void FAR* lpBuf, UINT nCount )
  throw( CFileException );
 
  Parameter   Description
 
  <lpBuf>     A pointer to the user-supplied buffer that contains the data
              to be written to the file.
 
  <nCount>    The number of bytes to be transferred from the buffer. For
              text-mode files, carriage return-linefeed pairs are counted
              as single characters.
 
  Remarks
 
  Writes data from a buffer to the file associated with the CFile object.
 
  Write throws an exception in response to several conditions, including
  the disk-full condition.
 
  Example
 
  extern CFile cfile;
  char pbuf[100];
  cfile.Write( pbuf, 100 );
 
 
  See Also
 
  CFile::Read, CStdioFile::WriteString
 
 
                                     -♦-