s-day09--JDK7之前IO异常的处理方式(重点)

This commit is contained in:
xx
2026-10-23 13:58:37 +08:00
parent 0a674e220a
commit 5fc0b7e169
2 changed files with 34 additions and 0 deletions
@@ -44,6 +44,8 @@ public class Demo12 {
fw.write("我是谁我在哪我在干嘛");
//3.刷新
fw.flush();//将要写出的字符数据从缓冲区,真的写出到文件
fw.write("字符输出流还能使用");
fw.flush();
//4.释放资源
fw.close();