- 字符输出流的其他方法:
*/
public class demo08Writer {
public static void main(String[] args) throws IOException {
FileWriter fw = new FileWriter("D:\\IdeaProjects\\basic-code\\aaaa\\qaq.txt");
char[] cr= {'a','b','c'};
fw.write(cr,1,2); //写一部分
fw.write("惹啊!!!");
fw.write("惹啊!!",0,2);
fw.close();
}
}