Load from file Error c#
<p>I am doing a mathematics quiz and I successfully saved both my question and answer in a different file. Now I am trying to load my questions from my file in a label. I will load each line of the file as a different question.</p>

<p>This is how I save my file:</p>

<pre><code>//checking if question or answer textbox are empty. If they are not then the question is saved

if (txtquestion.Text != "" &amp; txtanswer.Text != "") {
  //saves the question in the questions text
  using (System.IO.StreamWriter file = new System.IO.StreamWriter(@"C:\Users\User\Desktop\Assignment 2 Solo part\Questions.txt", true)) {
    file.WriteLine(txtquestion.Text);
  }
  //saves the answer in the answers text
  using (System.IO.StreamWriter file = new System.IO.StreamWriter(@"C:\Users\User\Desktop\Assignment 2 Solo part\Answers.txt", true)) {
    file.WriteLine(txtanswer.Text);
  }
  MessageBox.Show("Question and Answer has been succesfully added in the Quiz!", "Success!", MessageBoxButtons.OK, MessageBoxIcon.None);
  //cleaning the textboxes for a new question and answer
  txtanswer.Text = "";
  txtquestion.Text = "";
} else if (txtquestion.Text == "")
//checks if the question textbox is empty and shows the corresponding message
  else if (txtquestion.Text == "")
    MessageBox.Show("Please enter a question", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
  else  //checks if the answer textbox is empty and shows the corresponding message
    if (txtanswer.Text == "")
      MessageBox.Show("Please enter an answer", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
</code></pre>

<p>This is how I am trying to load the question:</p>

<pre><code>private void frmquestion_Load(object sender, EventArgs e) {
  string line;
  string[] file = System.IO.File.ReadAllLines(@"C:\Users\User\Desktop\Assignment 2 Solo part\Questions.txt");
  line = file.ReadLine();
  Console.WriteLine(line);
}
</code></pre>

<p>The error I get is:</p>

<blockquote>
  <p>'System.Array' does not contain a definition for 'ReadLine' and no extension method 'ReadLine' accepting a first argument of type 'System.Array' could be found (are you missing a using directive or an assembly reference?)  </p>
</blockquote>
