C# using system.io not woking in my class but works in main

前端 未结 6 2105
后悔当初
后悔当初 2021-01-16 10:20

I am working on an issue I do not remember ever having before. I am using VS2012 C#

When i add using System.IO; to my main program everything works fine

6条回答
  •  攒了一身酷
    2021-01-16 11:15

    u have written in class, u cant write there. & also file.Exists() returns boolean value. u have to write something like this:

    boolean a= File.Exists("bla");
    

提交回复
热议问题