-2

我有一个返回 BufferedReader 的方法,如下所示:

File file = new File(fileName);
try {
     BufferedReader br = new BufferedReader(new FileReader(file));
}
catch(FileNotFoundException ex){
    ex.getStackTrace();
}

如何使用 JCIFS API 获取文件并返回 BufferedReader?

4

1 回答 1

0
BufferedReader reader = new BufferedReader(new InputStreamReader(
                    new FileInputStream(file), "UTF-8"));
于 2013-05-01T10:15:25.460 回答