资 源 简 介
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.PrintStream;
public class FileStreamDemo {
public static void main(String[] args) {
writeDate();
}
private static void copy() {
byte[] b= new byte[1000];
FileInputStream fs=null;
FileOutputStream fo=null;
try {
fs = new FileInputStream("e:\1.qsv");
fo = new FileOutputStream("e:\11.qsv");
while((fs.read(b))!=-1){
fo.write(b);
}
} catch (FileNotFoundException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}finally{
try {
fo.close();
fs.close();
} catch (IOException e) {
e.printStackTrace();
}
}
}