Java 8 - How to read file line by line in java?
<p>I saw this type of question asked already but they doesn't seems to answer mine problem. :(</p>

<p>I have a text file "file.txt" and its content something like this </p>

<blockquote>
  <p>abcd<br>
  efgh<br>
  ijkl</p>
</blockquote>

<p>now i want that , different type of lines stored by different String variable in my programme<br>
for example</p>

<pre><code>String firstLine , String secondLine , ThiredLine;
</code></pre>

<p>and when i print above Strings then output would be  </p>

<pre><code>firstLine :: abcd &amp; secondLine :: efgh &amp; thiredLine :: ijkl
</code></pre>

<p>is it possible to do it using <strong>readLine()</strong> method or any other?</p>

<p><strong>Thanks In Advance</strong> :)</p>