四个抽象类:InputStream OutputStream (字节)
Reader Writer (字符)
import java.io.*;
public class Test{
public static void main(String args[]) throws Exception{
FileOutputStream fos=new FileOutputStream("d:/007/a.txt");
FileInputStream fis=new FileInputStream("d:/007/b.txt");
int a=-1;
while((a=fis.read())!=-1){
fos.write(a);
}
fos.close();
fis.close();
fos.close();
fis.close();
}
}