Advertisement
lilezek

Untitled

Apr 13th, 2012
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.62 KB | None | 0 0
  1. #include <iostream>
  2. #include <cinttypes>
  3. #include <fstream>
  4. #include <jaguarleap/languagefile.h>
  5.  
  6. using namespace std;
  7.  
  8. int main()
  9. {
  10.     LanguageFile file("ENGLISH.DAT");
  11.     file.save("ENGLISH2.DAT");
  12.  
  13.     ifstream a("ENGLISH.DAT",ios::in|ios::binary),b("ENGLISH2.DAT",ios::in|ios::binary);
  14.  
  15.     int offset = 0;
  16.  
  17.     while (true)
  18.     {
  19.         char c = a.get();
  20.         char d = b.get();
  21.  
  22.         if (c == EOF || d == EOF)
  23.             break;
  24.         if (c != d)
  25.         {
  26.             cout << hex << "0x" << offset << ": " << c << ' ' << d << endl;
  27.         }
  28.         offset++;
  29.     }
  30.  
  31.     return 0;
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement