摘要: java遍历目录下的目录和文件 public static void findStrFromManyFiles(String dirName) throws IOException{ File dir = new File(dirName); File[] files = dir.listFiles 阅读全文
posted @ 2022-05-12 00:25 西北逍遥 阅读(243) 评论(0) 推荐(0) 编辑
摘要: java读取文本内容 public static String readHtmlContent(String htmlPath) throws IOException { String htmlContentStr = ""; File htmlFile = new File(htmlPath); 阅读全文
posted @ 2022-05-12 00:11 西北逍遥 阅读(306) 评论(0) 推荐(0) 编辑