#include #include #include intmain() { FILE*fp1,*fp2; charstr[100]={0}; fp1=fopen("e:file1.txt","r"); fp2=fopen("e:file2.txt","a"数胡激做李); fgets(str,100,fp1); fprintf(fp2,"%s"薯袜,str); fclose(fp1); fclose(fp2); system("pause"); return0; }
程序帮你提供。