This code :
IEnumerable lines = File.ReadLines(\"file path\");
foreach (var line in lines)
{
Console.WriteLine(line);
}
foreach (var line
I know this is old, but i actually just ran into this while working on some code on a Windows 7 machine. Contrary to what people were saying here, this actually was a bug. See this link.
So the easy fix is to update your .net framefork. I thought this was worth updating since this was the top search result.