void copyfile()
{
char f_buf[1024] = { 0 };
ifstream infile("H:\\Temp\\cmd.exe", ios::in | ios::binary);
ofstream outfile("H:\\getfile\\cmd.exe", ios::app | ios::binary);
if (!infile)
{
}
while (!infile.eof())
{
infile.read(f_buf, sizeof(f_buf));
outfile.write(f_buf, sizeof(f_buf));
}
infile.close();
outfile.close();
cout << "去看看有没有文件" << endl;
}C++ 读取大文件函数
最新推荐文章于 2025-10-20 16:55:59 发布
633

被折叠的 条评论
为什么被折叠?



