virtual void SetLength( const DWORD dwNewLen )
throw( CFileException );
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.
Changes the length of the file.
Note:
With CMemFile, this function could throw a CMemoryException object.
extern CFile cfile;
DWORD dwNewLength = 10000;
cfile.SetLength( dwNewLength );