AutoFile::Truncate

Wrapper around TruncateFile().

Synopsis

Declared in <streams.h>

bool
Truncate(unsigned int size);

Return Value

True if the file was successfully truncated, false otherwise.

Parameters

NameDescription
sizeNew size of the file in bytes.