日期:2014-05-20 浏览次数:20790 次
FileReader fr = new FileReader(f); //System.out.print(fr.getEncoding()); BufferedReader br = new BufferedReader(fr); String str = br.readLine(); while(str!= null) { ta.append(str); ta.append("\n"); str = br.readLine(); } ta.append("中"); fr.close(); br.close();
FileInputStream fr = new FileInputStream(f); InputStreamReader br = new InputStreamReader(fr, "GB2312");