标签:txt buffered col buffer puts red 分享 stream 运行
Resource resource =new ClassPathResource("dictionary.txt"); BufferedReader reader=null; //reader=new BufferedReader(new FileReader(file));这样在web运行的时候,读取会乱码 reader=new BufferedReader(new InputStreamReader(resource.getInputStream(),"UTF-8"));
标签:txt buffered col buffer puts red 分享 stream 运行
原文地址:https://www.cnblogs.com/lyon91/p/10155991.html