C# why isnt my StreamReader working?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/13172171/c-sharp-streamreader-input-files-from-labels">C# StreamReader input files from labels?</a>  </p>
</blockquote>



<p>Okay I am working on a Roller Dice program still, I need the program to show the previous High Score everytime the game starts over. However when I type in the code. Its giving me errors staying. The name 'File' does not exist and namespace name StreamReader could not be found?
Please help</p>

<pre><code>private void button2_Click(object sender, EventArgs e)
{   
    try
    {
        int scores;
        int highscore = 0;
        StreamReader inputFile;

        inputFile = File.OpenText("HighScore.txt");

        while (!inputFile.EndOfStream)
        {
            scores = int.Parse(inputFile.ReadLine());

            highscore += scores;
        }

        inputFile.Close();

        highscoreLabel.Text = highscore.ToString("c");

    }   
    catch (Exception ex)
    {
        MessageBox.Show(ex.Message);
    }
}
</code></pre>
