备忘
Files.lines(Paths.get("FILE_PATH"), StandardCharsets.UTF_8).forEach(System.out::println);
StringBuffer stringBuffer = new StringBuffer(); Files.lines(Paths.get("FILE_PATH"), StandardCharsets.UTF_8).forEach(stringBuffer::append);
备忘
Files.lines(Paths.get("FILE_PATH"), StandardCharsets.UTF_8).forEach(System.out::println);
StringBuffer stringBuffer = new StringBuffer(); Files.lines(Paths.get("FILE_PATH"), StandardCharsets.UTF_8).forEach(stringBuffer::append);