// 08-file1.cpp : echo disk file to console import std; using namespace std; int main(int argc, const char *argv[]) { if (argc != 2) { cerr << "Syntax: " << argv[0] << " \n"; return 1; } ifstream infile{ argv[1] }; int c = infile.get(); while (c != ifstream::traits_type::eof()) { cout << static_cast(c); c = infile.get(); } }