20201207日报

1、给文件里写内容。

 1 //写文本文件
 2     public void write() throws IOException {
 3         File file = new File("d:/b.txt");
 4         OutputStream os new FileOutputStream(file);
 5         OutputStreamWriter writer = new OutputStreamWriter(c
 6         BufferedWriter bw = new BufferedWriter(writer);
 7         //写内容到磁盘文件中
 8         bw.write("java培优,
高薪就业");     //
  是换行
 9         //释放资源
10         bw.close();
11     }

2、没有问题。

3、继续学习。

原文地址:https://www.cnblogs.com/Clark-Shao/p/14144391.html