输入流,一次读取一行
然后直截取和拆分字符串
File file = new File("txt文件路径");
InputStreamReader isr = new InputStreamReader(new FileInputStream(file));
BufferedReader br = new BufferedReader(isr);
String tmp = null;
while((tmp = br.readLine()) != null){
System.out.println(tmp);
}
剩下的就是你对这个tmp进行拆分