truncate

Truncate a file to a specified length.

void
truncate
(
string filepath
,
size_t size
)

Parameters

filepath string

File to be resized.

size size_t

New length in bytes.

Meta