Program: 5 mport java.io.

*; class Fcopy { public static void main(String args[])throws Exception { FileInputStream fis; FileOutputStream fos; int ch; fis = new FileInputStream(args[0]); fos = new FileOutputStream(args[1]);

while((ch=fis.read())!=-1) { fos.write(ch); } fis.close(); fos.close(); } }

Sign up to vote on this title
UsefulNot useful