if (args.length != 1) { System.err.println("Usage: java FileTyper filename"); return; } typeFile(args[0]);
FileInputStream fin = new FileInputStream(filename); try { StreamCopier.copy(fin, System.out); } finally { fin.close(); }