文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>C#生成静态及相关读取模板文件

C#生成静态及相关读取模板文件

时间:2010-09-13  来源:恨雪

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();
 本文地址:【伊甸网】http://www.edenw.com/tech/devdeloper/Cp/2010-09-13/5410.html
相关阅读 更多 +
排行榜 更多 +
辰域智控app

辰域智控app

系统工具 下载
网医联盟app

网医联盟app

运动健身 下载
汇丰汇选App

汇丰汇选App

金融理财 下载