程序部分代码如下,则红色的代码表示的意思是 File file = new File("D:" + File.separator + "test.txt"); /* 创建缓冲文件输出流 */ BufferedOutputStream bos = new BufferedOutputStream( new FileOutputStream(file)); bos.write("Hello World!".getBytes());// 写入到缓冲区 bos.flush (); bos.close();