std::filesystem::resize_file (3) Linux Manual Page
std::filesystem::resize_file – std::filesystem::resize_file Synopsis Defined in header<filesystem> void resize_file(const std::filesystem::path &p, std::uintmax_t new_size); void resize_file(const std::filesystem::path &p, (since C++ 17) std::uintmax_t new_size, std::error_code &ec) noexcept; Changes the size of the regular file named by p as if by POSIX truncate: if the file size was previously larger than new_size, the remainder of the file is…
