代码
        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();

 

相关文章:

  • 2022-01-16
  • 2021-11-27
  • 2022-12-23
  • 2021-11-18
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-11-21
  • 2022-12-23
  • 2021-12-26
  • 2021-06-29
  • 2021-11-27
  • 2021-11-27
  • 2022-12-23
相关资源
相似解决方案