title: Lines of a StreamReader to an array of string
body: <p>I want to get a <code>string[]</code> assigned with a <code>StreamReader</code>. Like:</p>
  
  <pre><code>try{
      StreamReader sr = new StreamReader("a.txt");
      do{
          str[i] = sr.ReadLine();
          i++;
      }while(i &lt; 78);
  }
  catch (Exception ex){
      MessageBox.Show(ex.ToString());
  }
  </code></pre>
  
  <p>I can do it but can't use the string[]. I want to do this:</p>
  
  <pre><code>MessageBox.Show(str[4]);
  </code></pre>
  
  <p>If you need further information feel free to ask, I will update.
  thanks in advance...</p>