<tr>
<td width="33%" align="right" style="padding:0px 20px 0px 24px;">
<img src=/images/welcometo.gif>
</td>
<td width="67%" style="font-size:15px;color:#3333CC;font-weight:bold">广东亿迅科技有限公司(广东省电信公司科学技术研究院)</td>
</tr>
希望得到的结果是:
<tr><td width="33%" align="right" style="padding:0px 20px 0px 24px;"><img src=/images/welcometo.gif></td><td width="67%" style="font-size:15px;color:#3333CC;font-weight:bold">广东亿迅科技有限公司(广东省电信公司科学技术研究院)</td></tr>
<td width="33%" align="right" style="padding:0px 20px 0px 24px;">
<img src=/images/welcometo.gif>
</td>
<td width="67%" style="font-size:15px;color:#3333CC;font-weight:bold">广东亿迅科技有限公司(广东省电信公司科学技术研究院)</td>
</tr>
希望得到的结果是:
<tr><td width="33%" align="right" style="padding:0px 20px 0px 24px;"><img src=/images/welcometo.gif></td><td width="67%" style="font-size:15px;color:#3333CC;font-weight:bold">广东亿迅科技有限公司(广东省电信公司科学技术研究院)</td></tr>
string str=str1+str2+...+strn;
using System.Text;
using System.IO;class App
{
static void Main()
{
String file=@"test.htm";
StreamReader sr=File.OpenText(file);
String input;
StringBuilder sb=new StringBuilder();
while((input=sr.ReadLine())!=null)
{
sb.Append(input);
sb.Replace('\n',' ');
sb.Replace('\t',' ');
}
Console.WriteLine(sb.ToString());
}
}//我按照楼上的提示,写的小例子,不知是不是楼主要求的?