FileInputStream fileInputStream = new FileInputStream(new File("输入目录"));
FileOutputStream fileOutputStream = new FileOutputStream(new File("输出目录"));
byte[] bytes = new byte[fileInputStream.available()];
fileInputStream.read(bytes);
fileOutputStream.write(bytes);
fileOutputStream.close();
fileInputStream.close();
很久没用文件输入输出流了 简单记录一下