30 Input/output library [input.output]

30.10 File systems [filesystems]

30.10.14 Filesystem operation functions [fs.op.funcs]

30.10.14.33 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;
Postconditions: file_­size(p) == new_­size.
Throws: As specified in [fs.err.report].
Remarks: Achieves its postconditions as if by POSIX truncate().