With the advent of .NET Core / Native console app (RC1) I wonder if there is an equivalent of FileStream in .NET Core that I can use to open any location on the disk?
I just tried to compile
using (var s = new FileStream(@"c:\temp\a.txt", FileMode.Create))
using (var sw = new StreamWriter(s))
sw.WriteLine("it worked!");
And I got the following erros
Program.cs(13,32,13,42): DNX Core 5.0 error CS0246: The type or namespace name 'FileStream' could not be found (are you missing a using directive or an assembly reference?)
Program.cs(13,61,13,69): DNX Core 5.0 error CS0103: The name 'FileMode' does not exist in the current context
And YES I have 'using System.IO'
The problem is in the library, it's NOT mscorlib, it's
.NET Core