CSDN博客

img alee007

关于读取文件中的中文内容

发表于2004/10/20 9:56:00  885人阅读

File file = new File("C://JB//workspace//report.xls");

InputStreamReader  read = new InputStreamReader (new FileInputStream(file),"UTF-8");

BufferedReader reader=new BufferedReader(read);

String line;

while ((line = reader.readLine()) != null) {

System.out.println(line);

}

阅读全文
0 0

相关文章推荐

img
取 消
img