转自 http://blog.sina.com.cn/s/blog_700a65cc0100mieb.html
当ifstream read到文件尾,返回0值,其它时候返回非0值。下面给出一个用C++标准库实现文件拷贝的函数:
#include
<iostream>
#include
<fstream>
#include
<string>
using
namespace std;
const
int BUFSIZE = 1024 * 1024;
void
CopyRawFile(string InFile, string OutFile)
{
}