C# 读取txt文件内容时间:2023-03-10 01:30:06 if (!System.IO.File.Exists(@"E:\\111.txt")) { Console.Write("没有找到文件!"); } System.IO.StreamReader sr = new System.IO.StreamReader(@"E:\\111.txt"); OutUrl = sr.ReadToEnd(); sr.Close();