#include<iostream>#include<fstream>usingnamespace std;intcopy(char*destFile,char*srcFile){char ch;ifstream inFile(srcFile,ios::in);
ofstream outFile(destFile,ios::out);if(!srcFile){
cerr<<"File could not be open."<<endl;return0;}if(!destFile){
cerr<<"File could not be open."<<endl;return0;}while(inFile.get(ch))
outFile.put(ch);
inFile.close();outFile.close();
cout<<"Finish."<<endl;return1;}intmain(){copy("F:\\copystudents.txt","F:\\students.txt");}