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);

猜你喜欢

转载自www.cnblogs.com/heyiping/p/9391915.html