// Transforma file em Integer #include // cin, cout, etc. #include const int BASE = 256; main() { char b; // byte lido Integer a = 0; // inteiro gerado while (cin.get( b )) { int i = (unsigned)b; a = a*BASE + i; } cout << a << "\n"; }