This code worked better before, but then I messed with it. Anyway, the code worked perfectly on small files, but the files I want to compare are 700-800k big. I don't know if there are characters in those files which the program can't take or if it is something else.
int i = 0;
int x = 0;
while (!tfile.eof() && i < sizeof tdata)
while (!tfile2.eof() && x < sizeof tdata2)
for(int i=0; i<=(kokane.length() | kokane2.length()); i++)
if(! (kokane.substr(i, 1) == kokane2.substr(i, 1)) )
cout << "char " << i << ": " << kokane.substr(i, 1) << " !== " << kokane2.substr(i, 1);
If anyone knows what might be the problem, or if there's any real program for this, please let me know.