摘要: 1 package com.hxl; 2 3 import java.io.BufferedInputStream; 4 import java.io.BufferedOutputStream; 5 import java.io.File; 6 import java.io.FileInputStream; 7 import java.io.FileOutputStream; ... 阅读全文
posted @ 2018-02-23 21:57 Schiller_Hu 阅读(876) 评论(0) 推荐(0) 编辑
摘要: 1 // 该方法遍历指定目录下的所有文件 2 public static void listAllFiles(String mypath) { 3 // 实例化File对象 4 File file = new File(mypath); 5 // 判断该File对象是否是文件夹 6 if (file.is... 阅读全文
posted @ 2018-02-23 20:20 Schiller_Hu 阅读(2158) 评论(0) 推荐(0) 编辑
摘要: 文件被写入后,但未关闭流,却又打开输入流,当然有问题。。 阅读全文
posted @ 2018-02-23 17:47 Schiller_Hu 阅读(542) 评论(0) 推荐(0) 编辑
摘要: 1 package com.hxl; 2 3 import java.io.BufferedInputStream; 4 import java.io.BufferedOutputStream; 5 import java.io.FileInputStream; 6 import java.io.FileOutputStream; 7 import java.io.... 阅读全文
posted @ 2018-02-23 16:39 Schiller_Hu 阅读(2151) 评论(0) 推荐(0) 编辑