void main() {FILE*in,*out;
char ch,infile[10],outfile[10];  printf(\"input the infile name:\\n\");  scanf(\"%s\
printf(\"input the outfile name:\\n\");  scanf(\"%s\
if((in=fopen(infile,\"r\"))==NULL) {
printf(\"can't open the infile\\n\");  exit(0); }
if((out=fopen(outfile,\"w\"))==NULL) {
printf(\"can't open the outfile\\n\");  exit(0); }
ch=fgetc(in);  while(ch!=EOF) {
fputc(ch,out);  ch=fgetc(in); } }