About reading the Chinese content in the file

xiaoxiao2021-03-06  109

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);

}

转载请注明原文地址:https://www.9cbs.com/read-103867.html

New Post(0)