string line = string.Empty;
List
using (StreamReader reader = new StreamReader(@"text1.txt"))
{
line = reader.ReadLine();
while (line !=""&&line !=null)
{
lines.Add(line);
Console.WriteLine(line);
line = reader.ReadLine();
}
}
//通过C#中的泛型来记录
插!!答得好?答得好,你压根就看不懂,有啥用?
http://zhidao.baidu.com/question/1690056934508924748.html?oldq=1
自个慢慢找资料解决吧