29 Input/output library [input.output]

29.11 File systems [filesystems]

29.11.13 Filesystem operation functions [fs.op.funcs]

29.11.13.34 Resize file [fs.op.resize.file]

void resize_file(const path& p, uintmax_t new_size); void resize_file(const path& p, uintmax_t new_size, error_code& ec) noexcept;
Effects: Causes the size that would be returned by file_­size(p) to be equal to new_­size, as if by POSIX truncate().
Throws: As specified in [fs.err.report].