string gh = HttpRuntime.AppDomainAppPath;
StreamReader reader = new StreamReader(gh+"/33.htm", Encoding.GetEncoding("gb2312"));
string html = reader.ReadToEnd();
html = html.Replace("<!--123-->", "好好");
Response.Write(html);
StreamWriter sw = new StreamWriter(Server.MapPath("311.htm"), false, System.Text.Encoding.GetEncoding("GB2312"));
sw.WriteLine(html);
sw.Flush();
sw.Close();
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/12639172/viewspace-627721/
,如需转载,请注明出处,否则将追究法律责任。