Parameters
dwNewLen
Specifies the desired length of the file in bytes. This value can be larger or smaller than the current length of the file. The file is extended or truncated as appropriate.
Example
// Example for the CFile::SetLength method.
extern CFile cfile;
long dwNewLength = 10000;
cfile.SetLength( dwNewLength );