TXT-Datei in TextBox lesen

Ich versuche, eine TXT-Datei in ein mehrzeiliges Textfeld mit dem folgenden Code einzulesen. Ich habe die Dateidialogschaltfläche so eingerichtet, dass sie einwandfrei funktioniert, bin mir jedoch nicht sicher, wie ich den tatsächlichen Text aus der Datei in das Textfeld kopieren kann. Hier ist mein Code. Kannst du helfen?

private void button_LoadSource_Click(object sender, EventArgs e)
    {
        Stream myStream = null;
        OpenFileDialog openFileDialog1 = new OpenFileDialog();

        openFileDialog1.InitialDirectory = "c:\\";
        openFileDialog1.Filter = "txt files (*.txt)|*.txt|All files (*.*)|*.*";
        openFileDialog1.FilterIndex = 2;
        openFileDialog1.RestoreDirectory = true;

        if (openFileDialog1.ShowDialog() == DialogResult.OK)
        {
            try
            {
                if ((myStream = openFileDialog1.OpenFile()) != null)
                {
                    using (myStream)
                    {
                        // Insert code to read the stream here.
                    }
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show("Error: Could not read file from disk. Original error: " + ex.Message);
            }
        }
    }

Antworten auf die Frage(1)

Ihre Antwort auf die Frage