首页 > 技术文章 > 指定编码操作文件
honglihome 2013-12-05 16:15 原文
1、读取文件
InputStreamReader isr=new InputStreamReader(new FileInputStream(filename),"UTF-8");
2、写入文件