.txt"),"GBK"));String c;while ((c=input.readLine())!=null) {ll.add(c);System.out.println(c);}input.close(); } catch (UnsupportedEncodingException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace();} 1、从文件中读出每一行的文本数据,并将其按行放入到一个list容器中;