标签:
public class ReadList { public static List<String> readList(String file) throws IOException { List<String> li = new ArrayList<String>(); BufferedReader reader = new BufferedReader(new FileReader(file)); String s = null; while (null != (s = reader.readLine())) { li.add(s); } reader.close(); return li; } }
标签:
原文地址:http://www.cnblogs.com/windyWu/p/5982263.html