Populating a TextBox from a text file
<p>Im trying to get specific lines from a file and put them in a another string or maybe if we can put it in anothe textbox it wont be a prob :P</p>

<pre><code>string[] msglines;

msglines = System.IO.File.ReadAllLines(@"C:\\Users\xA\Desktop\MESSAGES.txt");

for (int x = 0; x &lt; msglines.Length; x++)
{
    this.textBox5.Text = msglines[c];
    c = c + 2;
}
</code></pre>

<p>I get a :
Index was outside the bounds of the array.</p>
