string sPath = System.Web.HttpContext.Current.Request.MapPath("/");//网站根目录
string strReadFilePath = sPath+"youfile.txt";//你的文件
asp.net获得网站的当前目录
最新推荐文章于 2023-10-14 19:00:00 发布
string sPath = System.Web.HttpContext.Current.Request.MapPath("/");//网站根目录
string strReadFilePath = sPath+"youfile.txt";//你的文件