text1.txt begin 10 11 12 20 21 22 30 31 32 end text2.txt begin 15 16 17 25 26 27 35 36 37 end text3.txt begin 25 27 29 45 47 49 65 67 69 end
1.0版。。。有待完善
#include<stdio.h> int main() { FILE *file_from1,*file_to,*file_from2; char date,date_another; int str; int num; int count; int total; char str_c; char count_c; file_from1 = fopen("wenjian.txt","r"); if(NULL == file_from1) { perror("open wenjian.txt"); return -1; } file_from2 = fopen("wenjian1.txt","r"); if(NULL == file_from2) { perror("open wenjian1.txt"); return -1; } file_to = fopen("wenjian2.txt","w&