asp.net(C#)判断指定的文件是否存在的代码
2021-06-14 13:06
阅读:479
标签:net server serve creat 判断 context 指定 ppa tpc
研发过程中,将做工程过程比较常用的一些代码段备份一下,下边代码段是关于asp.net(C#)判断指定的文件是否存在的代码,应该对各位有用处。if(!File.Exists(System.Web.HttpContext.Current.Server.MapPath(path)))
{
File.Create(System.Web.HttpContext.Current.Server.MapPath(path)).Close();
}
asp.net(C#)判断指定的文件是否存在的代码
标签:net server serve creat 判断 context 指定 ppa tpc
原文地址:https://blog.51cto.com/14131177/2353269
文章来自:搜素材网的编程语言模块,转载请注明文章出处。
文章标题:asp.net(C#)判断指定的文件是否存在的代码
文章链接:http://soscw.com/index.php/essay/93939.html
文章标题:asp.net(C#)判断指定的文件是否存在的代码
文章链接:http://soscw.com/index.php/essay/93939.html
评论
亲,登录后才可以留言!