8 int 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];
13 puts(
"Run comparison");
14 while((!file1.eof())&&(!file2.eof()))
16 file1.getline(string1,16*256);
17 file2.getline(string2,16*256);
19 if(strcmp(string1,string2) != 0)
21 cout << j <<
"-th strings are not equal" <<
"\n";
22 cout <<
" " << string1 <<
"\n";
23 cout <<
" " << string2 <<
"\n";