参考:https://blog.csdn.net/weixin_40068689/article/details/82117031?utm_source=blogxgwz3
foreach(string str in System.IO.File.ReadAllLines("d:\123.txt", Encoding.Default)
{
Console.WriteLine(str); // str就是每一行数据
}
jeenma |
|
||
参考:https://blog.csdn.net/weixin_40068689/article/details/82117031?utm_source=blogxgwz3 foreach(string str in System.IO.File.ReadAllLines("d:\123.txt", Encoding.Default)
|
Copyright © 2024 jeenma
Powered by .NET 9.0 on Kubernetes |