C++ file copy

#include <fstream>

int main()
{
    std::ifstream  src("from.ogv", std::ios::binary);
    std::ofstream  dst("to.ogv",   std::ios::binary);

    dst << src.rdbuf();
}
posted @ 2020-01-21 09:54  一只羊JAS  阅读(288)  评论(0编辑  收藏  举报