s-day09--JDK7之前IO异常的处理方式(重点)
This commit is contained in:
@@ -44,6 +44,8 @@ public class Demo12 {
|
||||
fw.write("我是谁我在哪我在干嘛");
|
||||
//3.刷新
|
||||
fw.flush();//将要写出的字符数据从缓冲区,真的写出到文件
|
||||
fw.write("字符输出流还能使用");
|
||||
fw.flush();
|
||||
//4.释放资源
|
||||
fw.close();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user