read all lines split C#

53

read all lines split C# -

List<string[]> list = File.ReadLines("YourFile.txt")
                          .Select(r => r.TrimEnd('#'))
                          .Select(line => line.Split(','))
                          .ToList();

Comments

Submit
0 Comments