java制定编码的读取
FileInputStream fs=new FileInputStream(fileName); InputStreamReader fileRead=new InputStreamReader(fs,"UTF-8"); BufferedReader read=new BufferedReader(fileRead); String line; try { int count=0; while ((line = read.readLine()) != null) { if(count==0){ count++; continue; } StringTokenizer st = new StringTokenizer(line, "|"); String reverse = st.nextToken(); String word=st.nextToken();//nextToken()是取下一个 } }