====== C - C++ Files - End of file ====== #include #include #include #include using namespace std; int main(int argc, char *argv[]) { if(argc!=2) { cout << "Usage: Display \n"; return 1; } ifstream in(argv[1], ios::in | ios::binary); if(!in) { cout << "Cannot open input file.\n"; return 1; } register int i, j; int count = 0; char c[16]; cout.setf(ios::uppercase); while(!in.eof()) { for(i=0; i<16 && !in.eof(); i++) { in.get(c[i]); } if(i<16) // get rid of eof i--; for(j=0; j