CFile::SetLength
Visual Studio 2005
Call this function to change the length of the file.
virtual void SetLength( ULONGLONG dwNewLen );
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.
Note