title: Line numbers and text files Java
body: <p>I'm studying for my finals and i wondering if there is a particular way of printing out the  data of a line in a text file. for example if i had the following in a text file:</p>
  
  <pre><code>11 
  1c20 
  203 
  G2 
  </code></pre>
  
  <p>I was wondering if there is a way where I input for example 2 ,4 i would get an output 1c20 203 G2. by using two integers start and finish. i have research for this method, but unable to find anything. I understand there is a  is a getLineNumber() but i want to use the two Integers.</p>
  
  <p>Thanks in advance!</p>