title: Partial reading of file in Java
body: <p>I am creating a Java application in which I need to read the first few lines of a huge text file and do the processing.
  Is it possible that instead of getting the entire file, I read the first few lines and fetch the data?  And this is being done using Java API.</p>