title: Number of lines in a file in Java
body: <p>I use huge data files, sometimes I only need to know the number of lines in these files, usually I open them up and read them line by line until I reach the end of the file</p>
  
  <p>I was wondering if there is a smarter way to do that</p>