title: Reading a line from index in Text file in VB
body: <p>I'm creating a Quiz Application in which I have added all the questions and options in a single text file.But I have no idea how to move to next question when I click next button and previous question when I click previous button.The problem I'm currently facing is reading a specific line from the text file.</p>
  
  <p><strong>This is the function for Next Button</strong></p>
  
  <pre><code> Public Function Next_Ques() As Integer
          Label1.Text = file.ReadLine()
          RadioButton1.Text = file.ReadLine()
          RadioButton2.Text = file.ReadLine()
          RadioButton3.Text = file.ReadLine()
          RadioButton4.Text = file.ReadLine()
          ansKey = file.ReadLine()
          Return 0
      End Function
  </code></pre>
  
  <p>The Next Button is working perfectly.But i don't know how to read the Previous lines.</p>