java文件缓冲流BufferedOutputStream
    package IO;
import java.io.BufferedOutputStream;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;
public class BufferOutPutStreamDemo {
    public static void main(String[] args) {
        File file = new File("c://test//3.txt");
        try {
            OutputStream out=new FileOutputStream(file);
            BufferedOutputStream bos=new BufferedOutputStream(out);
            String info="你长得真好看";
            bos.write(info.getBytes());
            bos.close();
            System.out.println("写入成功");
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}