title: Java Read Large Text File With 70million line of text
body: <p>I have a big test file with 70 million lines of text.
  I have to read the file line by line.</p>
  <p>I used two different approaches:</p>
  <pre><code>InputStreamReader isr = new InputStreamReader(new FileInputStream(FilePath),&quot;unicode&quot;);
  BufferedReader br = new BufferedReader(isr);
  while((cur=br.readLine()) != null);
  </code></pre>
  <p>and</p>
  <pre><code>LineIterator it = FileUtils.lineIterator(new File(FilePath), &quot;unicode&quot;);
  while(it.hasNext()) cur=it.nextLine();
  </code></pre>
  <p>Is there another approach that can make this task faster?</p>