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::SetLength
CFile                                       Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  virtual void SetLength( const DWORD dwNewLen )
  throw( CFileException );
 
  Parameter   Description
 
  <dwNewLen>  Desired length of the file in bytes. This value may be
              larger or smaller than the current length of the file. The
              file will be extended or truncated as appropriate.
 
  Remarks
 
  Changes the length of the file.
 
  NOTE: With CMemFile, this function could throw a CMemoryException
        object.
 
  Example
 
  extern CFile cfile;
  DWORD dwNewLength = 10000;
  cfile.SetLength( dwNewLength );
 
 
 
                                     -♦-