Java1.8 get the file number of rows

Files.lines(Paths.get("aaa.txt")).count();

Guess you like

Origin www.cnblogs.com/changfangxing/p/10932248.html