/* 范例9-27 */#include stdio.h#include stdlib.hvoid main(int argc,int *argv[]){FILE *fp1,*fp2;int ch,ret;if(argc!3){printf(Syntax Error!\n\tp9-27 source target);exit(1);}fp1fopen(argv[1],rb);fp2fopen(argv[2],wb);while(!feof(fp1)){ch getc(fp1);if(ch!EOF)putc(ch,fp2);}fclose(fp1);fclose(fp2);}程序执行结果(假设要把oo.txt复制成xx.txt)D:\TCp9-27 oo.txt xx.txt