Reputation: 43768
For some reason, I'm unable to use File read and write in c# .net, error display like below
Where I do have the System.IO.Compression.FileSystem under my Reference
Does anyone know why and how could I resolve this issue?
Upvotes: 0
Views: 54
Reputation: 32058
That File
is referring to the Controller.File
method.
It's enough to fully qualify the type:
var sw = System.IO.File.CreateText(filePath);
Upvotes: 5