首页 > Windows开发 > 详细

C#删除文件

时间:2016-12-20 19:55:51      阅读:276      评论:0      收藏:0      [点我收藏+]
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#删除文件

原文:http://www.cnblogs.com/dzw159/p/6203596.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!