package com.i2f.util; import java.io.File; /** public String[] getFileTypes() { public String readText(File file, String charset) throws Exception { public static void main(String[] s) throws Exception { total += System.currentTimeMillis() - start; } |
java NIO 处理 txt文件
最新推荐文章于 2024-04-23 11:56:27 发布
想到apache和tomcat 的http.conf 配置文件,心血来潮, 使用java noi包来解析txt文件,可以做到参数化配置。仅作记录免得忘记,代码示例如下