#include #include #include int main( void ) { char ch; ifstream fin( "abc.txt" ); if ( ! fin ) { cerr << "Cannot open file abc.txt\n"; exit( 1 ); } // skips whitespace. // while ( fin >> ch ) // cout << ch; while ( fin.get( ch ) ) cout.put( ch ); }