一次文件读取产生的记录
项目的结构如下
@Test
public void testReadFile2() throws IOException {
//excel模板路径
File cfgFile = ResourceUtils.getFile(ResourceUtils.CLASSPATH_URL_PREFIX + "static/e4ea4198171b9a889560bc4599c6ad62562349280dd6e43f7f81f53a49895f69_sk");
System.out.println(cfgFile.getPath());
BufferedReader reader = new BufferedReader(new FileReader(cfgFile));
String temp;
while ((temp = reader.readLine()) != null) {
System.out.printf(temp);
}
}