下面的程序将一个已有文件的内容复制到另-一个文件中,请将程序补充完整
#include<fstream>
using namespace std;
int main( )
{
________________
infile.open("d(\filel.txt", ois::in);
if(!file)
cout<<"file1.txt can't open.\n";
outfile.open("d:\file2.txt", ios:out);
if(!outfile)
cout<<"file2.txt can't open.n";
char str[80]="\0";
while(!infile.eof())
{
infile.read(str,sizef(str));
_________________
coute<<str;
}
infile.close();
outfile.close();
return 0;
}