备忘

	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);

Leave a reply

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> 

required

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据