public static void main(String[] args) throws IOException {
// TODO Auto-generated method stub
//创建数据流
FileInputStream fis = new FileInputStream("F:\\BaiduYunDownload\\Linux C从入门到精通\\TM(视频讲解及实例源程序)\\lx(视频讲解)\\1\\Linux的内核与版本.exe");
FileOutputStream fos = new FileOutputStream("1.exe");
//操作文件
int b= 0;
while ((b=fis.read())!=-1) {
fos.write(b);
}
System.out.println(last-first+"毫秒");
//关闭资源
fos.close();
fis.close();
} |
|