以特定的编码读取文件,以特定的编码写入文件
以下代码是针对 BufferedReader 和 BufferedWriter 的
BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(new FileInputStream(inF),"GB2312"));// 以GB2312的编码读文件 |
All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.
Comment