FileStream StreamReader problem in C#
<p>I'm testing how the classes FileStream and StreamReader work togheter. Via a Console application.
I'm trying to go in a file and read the lines and print them on the console.</p>

<p>I've been able to do it with a while-loop, but I want to try it with a foreach loop.</p>

<pre><code>using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace testing
{
    public class Program
    {
        public static void Main(string[] args)
        {
            string file = @"C:\Temp\New Folder\New Text Document.txt";
            using(FileStream fs = new FileStream(file, FileMode.Open, FileAccess.Read))
            {
                using(StreamReader sr = new StreamReader(fs))
                {
                    foreach(string line in file)
                    {
                        Console.WriteLine(line);
                    }
                }
            }
        }
    }
}
</code></pre>

<p>The error I keep getting for this is: Cannot convert type 'char' to 'string'</p>

<p>The while loop, which does work, looks like this:</p>

<pre><code>while((line = sr.ReadLine()) != null)
{
    Console.WriteLine(line);
}
</code></pre>

<p>I'm probably overlooking something really basic, but I can't see it.</p>
