文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
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
相关阅读 更多 +
排行榜 更多 +
乐乐太空杀安卓版

乐乐太空杀安卓版

棋牌卡牌 下载
利刃战锤

利刃战锤

棋牌卡牌 下载
血债血偿2街头乱战Payback 2

血债血偿2街头乱战Payback 2

飞行射击 下载