Script started on Thu Apr 8 10:58:57 1999 No match [31]retriever[edelman] CC -n32 test1.C [32]retriever[edelman] a.out //file test1.C - shows simple file IO - part 1 #include #include #include main() { // one way to open a file fstream testf("test1.C",ios::in); int ch; int count = 0; while ( (ch= testf.get()) !=EOF) { cout.put((char)ch); //note that typecast is needed // because put expects a character as an arg count++; } cout <<" I read " << setw(1) << count << " characters" <