用一个BOOLEAN判断,最后打印出这个BOOLEAN即可

解决方案 »

  1.   

    I have a solution, Maybe you can create a boolean variable, when you open the text file, you can set boolean variable's value is true; if false, it's not opened. then you can check it's value to do something...
      

  2.   

    I cannot understand, still. Give some codes please.
      

  3.   

    有个例外就是,当文件被微软的notepad.exe打开后,返回的状态不一定正确。