[C#] C#读取文件的所有行到数组 →→→→→进入此内容的聊天室

来自 , 2019-10-12, 写在 C#, 查看 129 次.
URL http://www.code666.cn/view/0307fec2
  1. using System;
  2. namespace PlayingAround {
  3.     class ReadAll {
  4.         public static void Main(string[] args) {
  5.             string[] lines = System.IO.File.ReadAllLines(@"C:\t1");
  6.             Console.Out.WriteLine("contents = " + lines.Length);
  7.             Console.In.ReadLine();
  8.         }
  9.     }
  10. }
  11. //csharp/4810

回复 "C#读取文件的所有行到数组"

这儿你可以回复上面这条便签

captcha