package text;
import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;
public class Buff6 {
public static void main(String[] args) throws IOException {
// 创建字符缓冲流 封装文件 让文件续写
BufferedWriter buw=new BufferedWriter(new FileWriter("D:\IO\ac.txt",true));
// 写入字符
buw.write("你好");
// 换行
buw.newLine();
buw.write("世界");
// 关闭流
buw.close();
}
}