#include <iostream> #include <fstream> #include <cstdlib> using namespace std; int main(int argc, char *argv[]) { char ch; ifstream in("test.txt", ios::in | ios::binary); if(!in) { cout << "Cannot open file."; return 1; } in.seekg(2, ios::beg); while(in.get(ch)) cout << ch; return 0; }
9.9 T 9.9a M 4.8