#keywords {{{#!gcode if (args.length == 0) { System.err.println("[input filename] [output filename]"); System.exit(1); } long startTime = System.currentTimeMillis(); try { FileInputStream fi = new FileInputStream(args[0]); FileOutputStream fo = new FileOutputStream(args[1]); byte[] buf = new byte[8096]; int readSeq = 0; while ((readSeq = fi.read(buf)) != -1) { fo.write(buf, 0, readSeq); } fi.close(); fo.close(); } catch(IOException e) { System.err.print(e.getLocalizedMessage()); System.exit(1); } long elapsedTime = System.currentTimeMillis(); System.out.format("%s %.4fs\n", "execution time", (elapsedTime - startTime) / 1000.0); }}} ---- {{{ c:\test>my [input filename] [output filename] ---- c:\test>my abc abc (지정된 파일을 찾을 수 없습니다) ---- c:\test>my vsrename.exe vs2.exe execution time 0.0310s }}}