摘要:
1 using System; 2 using System.Collections.Generic; 3 using System.Data; 4 using System.IO; 5 using System.Linq; 6 using System.Text; 7 using System.Text.RegularExpressions; 8 using System.We... 阅读全文
摘要:
StreamReader sr = new StreamReader(path); //path是要读取的文件的完整路径 String str_read = sr.ReadToEnd(); //从开始到末尾读取文件的所有内容,str_read 存放的就是读取到的文本 sr.Close(); //读完 阅读全文