标签:文件内容 col reader from ram stream adt winfrom div
第一种:
/// <summary> /// 读取txt文件内容 /// </summary> /// <param name="Path">文件地址</param> public void ReadTxtContent(string Path) { StreamReader sr = new StreamReader(Path, Encoding.Default); string content; while ((content = sr.ReadLine()) != null) { Console.WriteLine(content.ToString()); } }
标签:文件内容 col reader from ram stream adt winfrom div
原文地址:https://www.cnblogs.com/yinmu/p/10994947.html