Jin Yong
Jin Yong

Reputation: 43768

Unable to use File read and write in c# .net

For some reason, I'm unable to use File read and write in c# .net, error display like below

enter image description here

Where I do have the System.IO.Compression.FileSystem under my Reference

enter image description here

Does anyone know why and how could I resolve this issue?

Upvotes: 0

Views: 54

Answers (1)

Camilo Terevinto
Camilo Terevinto

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

Related Questions