System.IO.StreamReader sr = new System.IO.StreamReader(URL.Value/*文件路径*/, System.Text.Encoding.Default/*编码类型*/);sr.ReadLine();//一行一行读取sr.ReadToEnd();//从头读到尾读取
System.IO里面有一堆方法,看你想用哪个