Tag: 输入输出预览模式: 普通 | 列表
09-09
15

java文件读取 编码方式设置

Java代码
FileInputStream fr = new FileInputStream(path);  
            InputStreamReader is = new InputStreamReader(fr,"UTF-8");  
            BufferedReader br=new BufferedReader(is);  

FileInputStream fr = new FileInputStream(path);
InputStreamReader is = new InputStreamReader(fr,"UTF-8");
BufferedReader br=new BufferedReader(is);

查看更多...

Tags: 编码 文件读取 输入输出

分类:学习 | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 292