Files.lines(Paths.get("aaa.txt")).count();
Java1.8 get the file number of rows
Guess you like
Origin www.cnblogs.com/changfangxing/p/10932248.html
Recommended
Ranking