Read all lines with BufferedReader June 10, 2023 by Tarik One line of code using Java 8: line = buffer.lines().collect(Collectors.joining());