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: Как указано в [fs.err.report].
Remarks: Выполняет свои постусловия, как если бы это было POSIX truncate().