package com.itheima.output;
import java.io.FileOutputStream;
import java.io.IOException;
public class OutputDemo5 {
public static void main(String[] args) throws IOException {
FileOutputStream fos=new FileOutputStream(".\\a.txt",true);
fos.write(97);
fos.write("\r\n".getBytes());
fos.write(98);
fos.write("\r\n".getBytes());
fos.write(99);
fos.write("\r\n".getBytes());
fos.close();
}
}
78.FileOutputStream换行,打开追加开关ture
最新推荐文章于 2023-12-22 10:18:18 发布
关键词由CSDN通过智能技术生成