import java.io.*;
class Lee{
public static void main (String[] args){
FileOutputStream fos=null;
FileInputStream fis=null;
try{
fos=new FileOutputStream("D:\毕向东视频\9.png");
fis=new FileInputStream("D:\毕向东视频\99.png");
byte [] buf=new byte[1024];
int len=0;
while((len=fis.read(buf))!=-1)
{
fos.write(buf,0,len);
}
}
catch(IOException e){
throw new RuntimeException("复制失败");
}
finally{
try{
if(fis!=null)
fis.close();
}
catch(IOException e){
throw new RuntimeException("读取失败");
}
}
}
}