/* * L5-file-IO.cpp * * Demonstrations of file I/O */ #include #include using namespace std; int main () { ifstream in; in.open("jan07.txt"); // ifstream in ("jan07.txt"); char ch; /* string word; in >> word; cout << word << endl; */ while (!in.eof()) { in.get(ch); cout << ch; } cout << endl << "End of File" << endl; in.close(); return 0; }