publicclassBufferedOutputStreamDemo{
publicstaticvoidmain(String[]args)throwsIOException{
//实例化FIle对象
Filefile=newFile("test33.txt");
//实例化换种字节输出流
BufferedOutputStreamoutput=newBufferedOutputStream(newFileOutputStream(file));
//写
output.write("你好的halle".getBytes());
//刷新
output.flush();
//关闭
output.close();
}
}