摘要: public class ToLog { public static void main(String[] args) throws Exception { //准备日志文件 File f = new File("log.txt"); if(!f.ex... 阅读全文
posted @ 2014-04-29 20:25 mycome 阅读(217) 评论(0) 推荐(0) 编辑
摘要: public class DoTXT { // 定义成员变量:路径,文件对象,临时变量 private String path; // 文件路径 private File f; private FileReader fr; // 所需文件流对象 private File... 阅读全文
posted @ 2014-04-29 20:23 mycome 阅读(233) 评论(0) 推荐(0) 编辑