List of utility methods to do LineNumberReader Read
List | readLineFromFile(File file) Read file to list of string. List<String> result = new ArrayList<String>(); LineNumberReader lnr = null; try { lnr = new LineNumberReader(new BufferedReader( new InputStreamReader(new FileInputStream(file), Charset.defaultCharset().name()))); for (String line = lnr.readLine(); line != null; line = lnr .readLine()) { ... |