110,502
社区成员
发帖
与我相关
我的任务
分享
public static void LogResult(string sWord)
{
string strPath = HttpContext.Current.Server.MapPath("log");
strPath = strPath + "\\" + DateTime.Now.ToString("yyyyMMddhhmmss") + ".txt";
StreamWriter fs = new StreamWriter(strPath, false, System.Text.Encoding.Default);
fs.Write(sWord);
fs.Close();
}
string strPath = HttpContext.Current.Server.MapPath("~/log");