8int COMPARE_ASCII_FILES(
const string& f1,
const string& f2)
10 fstream file1(f1.c_str()), file2(f2.c_str());
11 char string1[16*256], string2[16*256];
14 puts(
"Run comparison");
15 while((!file1.eof())&&(!file2.eof()))
17 file1.getline(string1,16*256);
18 file2.getline(string2,16*256);
20 if(strcmp(string1,string2) != 0)
22 cout << j <<
"-th strings are not equal" <<
"\n";
23 cout <<
" " << string1 <<
"\n";
24 cout <<
" " << string2 <<
"\n";