You can do the reading a lot simpler:
string s = File.ReadAllText(fileName);
Or
string[] lines = File.ReadAllLines(fileName);
The later is useful when you load a multiline TextBox:
myTextBox.Lines = lines;
How to move the text to the second form (call it frmTwo):
In frmTwo, create a property:
public string Text
{
get { return myTextBox.Text; }
set { myTextBox.Text = value; }
}
Or
public string[] Lines
{
get { return myTextBox.Lines; }
set { myTextBox.Lines = value; }
}
In your first form, create an instance of the second form, set the data, and show it:
frmTwo f = new frmTwo();
f.Text = File.ReadAllText(fileName);
f.ShowDialog();
Or
frmTwo f = new frmTwo();
f.Lines = File.ReadAllLines(fileName);
f.ShowDialog();
You can use f.Show instead of f.ShowDialog