List of utility methods to do BufferedReader Read All
String | readAllText(String path) read All Text File file = new File(path); BufferedReader br = null; StringBuilder sb = new StringBuilder(); try { String line; br = new BufferedReader(new FileReader(file)); while ((line = br.readLine()) != null) { sb.append(line + '\n'); ... |
String | readAllTextFromSystemResource(String path) read All Text From System Resource InputStream stream = ClassLoader.getSystemResourceAsStream(path); try { return readAllText(stream); } finally { stream.close(); |