How can I get the count of line in a file in an efficient way?

Viewed 318191

I have a big file. It includes approximately 3.000-20.000 lines. How can I get the total count of lines in the file using Java?

15 Answers
Related