批量比对文档内容
发布时间
阅读量:
阅读量
对文件内容进行批量读取与对比分析,并将最终得出的结论记录至指定文件中:
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
int main(){
int i;
FILE *file1,*file2,*file;
char ch1,ch2,path1_tail[2000]={0},path2_tail[2000]={0};
char path[50]="/home/adu/Documents/project/result/v1";
if((file=fopen(path,"a+"))!=NULL){
for(i=1;i<=1052;i++){
int count1=0,count2=0;
int flag=0;
char path1[50]="/home/adu/Documents/project/totinfo/outputs/t";
char path2[50]="/home/adu/Documents/project/tot
全部评论 (0)
还没有任何评论哟~
