Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
virtualvoidSetLength(DWORDdwNewLen**);**
throw(CFileException);
Parameters
dwNewLen
Desired length of the file in bytes. This value can be larger or smaller than the current length of the file. The file will be extended or truncated as appropriate.
Remarks
Call this function to change the length of the file.
Note With CMemFile, this function could throw a CMemoryException object.
Example
//example for CFile::SetLength
extern CFile cfile;
DWORD dwNewLength = 10000;
cfile.SetLength( dwNewLength );