Professional Documents
Culture Documents
*;
class CopyBytes
FileInputStream infile=null;
FileOutputStream outfile=null;
byte byteRead;
try
inline=new FileInputStream("in.dat");
outfile=new FileOutputStream("out.dat");
do{
byteRead=(byte)infile.read();
outfile.write(byteRead);
}while(byteRead!=-1);
catch