How to extract the numbers from a text file
<p>After I made my button to open a window to select the file; I do not know how to extract the numbers from the actual file or from the stream called mystream.</p>

<pre><code>Stream myStream;
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)
{
    if((myStream = openFileDialog1.OpenFile())!= null)
    {
//Problem here: How do i extract the numerical values from my txt file or the stream called mystream.
//  Insert code to read the stream here. 

        myStream.Close();
    }
}
</code></pre>
