protected void Write_Txt(string FileName, string Content)
{
Encoding code = Encoding.GetEncoding("gb2312");
string htmlfilename = HttpContext.Current.Server.MapPath("Precious\" + FileName + ".txt"); //保存文件的路径
string str = Content;
StreamWriter sw = null;
{
try
{
sw = new StreamWriter(htmlfilename, false, code);
sw.Write(str);
sw.Flush();
}
catch { }
}
sw.Close();
sw.Dispose();
}protected void Write_Txt(string FileName, strin