C++ Programming Code Examples C++ > File Operations Code Examples Another Program for File Handling in C++ Another Program for File Handling in C++ #include <iostream> #include<fstream.h> void main() { char c, fn[10]; cout & lt; & lt; "Enter the file name....:"; cin & gt; & gt; fn; ifstream in (fn); if (! in ) { cout & lt; & lt; "Error! File Does not Exist"; getch(); return; } cout & lt; & lt; endl & lt; & lt; endl; while ( in .eof() == 0) { in .get(c); cout & lt; & lt; c; } }