c#读取html文件内容替换之后再写入

string sss = File.ReadAllText("E:\\FM\\Mall\\MallSGWeb\\MallSGWeb\\MALL_simple\\File\\11111.html");
string stroutput = sss.Replace("</p>", "</p><br />");
File.WriteAllText("E:\\FM\\Mall\\MallSGWeb\\MallSGWeb\\MALL_simple\\File\\22222.html", stroutput);

 

posted @ 2018-07-30 17:54  何以平天下  阅读(2007)  评论(0编辑  收藏  举报