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#)判断指定的文件是否存在
//文件不存在就创建
if(!File.Exists(System.Web.HttpContext.Current.Server.MapPath(path)))
{
File.Create(System.Web.HttpContext.Current.Server.MapPath(path)).Close();
}