package cn.itast.chap.sttt01.IO_FileIoputStream输入流和FileOutputStream输出流;
import java.io.*;
public class FIleInputStream_FileOutputStream_复制粘贴
{
public static void main(String[] args)throws Exception{
FileInputStream fis = new FileInputStream("罗家炬450881199909205339.jpg");
FileOutputStream fos = new FileOutputStream("C:\\Intel\\罗家炬450881199909205339.jpg");
byte [] bytes =new byte[1024];
int temp = 0;
while((temp = fis.read(bytes)) != -1){
fos.write(bytes,0,temp);
}
fos.flush();
fis.close();
fos.close();
}
}