当前位置:编程学习 > C#/ASP.NET >>

文件操作问题:Normal file does not contain a definition of 'File Delete Operator

删除文件时,出现如下错误信息

Normal file does not contain a definition of 'File Delete Operator'

--------------------编程问答-------------------- --------------------编程问答-------------------- 贴你的代码
if (System.IO.File.Exists("filepath"))
{
  System.IO.File.Delete("filepath");
  }

是没问题的
补充:.NET技术 ,  C#
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,