title: Use a while loop to read in the entire text file and output a message a list with only the even numbers from the file to the screen
body: <p>I can't figure out how to output a message a list with only the even numbers from the file to the screen.</p>
  
  <pre><code>using System.Collections.Generic;
  using System.IO;
  using System.Linq;
  using System.Text;
  using System.Threading.Tasks;
  
  namespace EvenNumbersFile
  {
     class Program
     {
      static void Main(string[] args)
      {
          StreamReader myReader = new StreamReader("NumbersFile.txt");
          string line = "";
  
          while (line != null)
          {
  
              line = myReader.ReadLine();
  
              if (line != null)
                  Console.WriteLine(line);
          }
  
          myReader.Close();
          Console.ReadLine();
        }
     }
  }
  </code></pre>