//file test3.C // #include #include #include main() { char ch; int count = 0; fstream testf; //can create stream object testf.open("test2.C", ios::in); //and decide how to use it // when opening it while (testf >>ch) { //extracting a character ignores whitespace! cout.put(ch); count++; } cout <<" I read " << setw(1) << count << " characters" <