#include <iostream> #include <fstream> using namespace std; int main(void){ ifstream in("test.cpp"); if(!in){ cout << "Cannot open file." << endl; exit (1); } in.ignore(10, ' '); char c; while(in) { in.get(c); cout << c; } in.close(); }