title: C# Sum of values from txt file
body: <p>How do I take the sum of the values from "Values.txt"? And how do I display it? I am very new to coding, this is for an entry level coding course.</p>
  
  <pre><code>static void Main(string[] args)
  {
      StreamReader myReader = new StreamReader("Values.txt");
      string line = "";
  
      while (line != null)
      {
          line = myReader.ReadLine();
          if (line != null)
              Console.WriteLine(line);
      }
  }
  </code></pre>