@Test public void readLines() throws Exception { }
public static List<String> readLines(File file) throws IOException { List<String> lines = new ArrayList<String>(); InputStreamReader reader = null; BufferedReader bufferedReader = null; try { reader = new FileReader(file); bufferedReader = new BufferedReader(reader); String lineText = null; while ((lineText = bufferedReader.readLine()) != null) { lines.add(lineText); } return lines; } finally { if (bufferedReader != null) { bufferedReader.close(); } if (reader != null) { reader.close(); } } }
FileUtils { public static List<String> readLines(File file) throws IOException { List<String> lines = new ArrayList<String>(); InputStreamReader reader = null; BufferedReader bufferedReader = null; try { reader = new FileReader(file); bufferedReader = new BufferedReader(reader); String lineText = null; while ((lineText = bufferedReader.readLine()) != null) { lines.add(lineText); } return lines; } finally { if (bufferedReader != null) { bufferedReader.close(); } if (reader != null) { reader.close(); } } } }
FileUtils { public static List<String> readLines(File file) throws IOException { List<String> lines = new ArrayList<String>(); InputStreamReader reader = null; BufferedReader bufferedReader = null; try { reader = new FileReader(file); bufferedReader = new BufferedReader(reader); String lineText = null; while ((lineText = bufferedReader.readLine()) != null) { lines.add(lineText); } return lines; } finally { if (bufferedReader != null) { bufferedReader.close(); } if (reader != null) { reader.close(); } } }  }
FileUtils { public static List<String> readLines(File file) throws IOException { List<String> lines = new ArrayList<String>(); InputStreamReader reader = null; BufferedReader bufferedReader = null; try { reader = new FileReader(file); bufferedReader = new BufferedReader(reader); String lineText = null; while ((lineText = bufferedReader.readLine()) != null) { lines.add(lineText); } return lines; } finally { if (bufferedReader != null) { bufferedReader.close(); } if (reader != null) { reader.close(); } } }  static String getBaseDirName(); static String getUserHomeDir(String base); static String file2String(File file); static String file2String(Class clazz, String relativePath, String encoding); static List<String> readLines(File file); static boolean string2File(File file, String data); static boolean cleanDirectory(File dir); }
FileUtils { public static List<String> readLines(File file) throws IOException { List<String> lines = new ArrayList<String>(); InputStreamReader reader = null; BufferedReader bufferedReader = null; try { reader = new FileReader(file); bufferedReader = new BufferedReader(reader); String lineText = null; while ((lineText = bufferedReader.readLine()) != null) { lines.add(lineText); } return lines; } finally { if (bufferedReader != null) { bufferedReader.close(); } if (reader != null) { reader.close(); } } }  static String getBaseDirName(); static String getUserHomeDir(String base); static String file2String(File file); static String file2String(Class clazz, String relativePath, String encoding); static List<String> readLines(File file); static boolean string2File(File file, String data); static boolean cleanDirectory(File dir); static final String LINE_SEPARATOR; }