首页 > 代码库 > C#删除文件

C#删除文件

string file =System.Web.HttpContext.Current.Server.MapPath(fileUrl);
                if (System.IO.File.Exists(file))//判断文件是否存在
          { System.IO.File.Delete(file); }

查找自:https://zhidao.baidu.com/question/123004173.html

C#删除文件