代码
//首先要引用
using System.IO;
//内容
string txt = "";
StreamReader sr = new StreamReader(@"c:\test.txt");
while (!sr.EndOfStream)
{
string str = sr.ReadLine();
txt += str + "</br>";
}
sr.Close();
Response.Write(txt);