1 2 3 4 5 6 7 8 9
std::ifstream in; in.open("имя_файла"); char c; in.get(c); while(!in.eof()) { cout<<c; in.get(c); }