You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
449 B

using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
class CSVReader
{
public static List<List<string>> ReadCSV(string path)
{
var list = new List<List<string>>();
var lines = File.ReadAllLines(path);
foreach (var line in lines)
{
var values = line.Split(',');
list.Add(values.ToList());
}
return list;
}
}