The code below should work.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
namespace ConsoleApplication1
{
class Program
{
const string FILENAME = @"c:\temp\abc.csv";
static void Main(string[] args)
{
List<List<string>> d2array = new List<List<string>>();
string inputLine = "";
StreamReader reader = new StreamReader(FILENAME);
while ((inputLine = reader.ReadLine()) != null)
{
List<string> inputArray = inputLine.Split(new char[] { ',' }).ToList();
//remove extra spaces
inputArray = inputArray.Select(x => x.Trim()).ToList();
d2array.Add(inputArray);
}
}
}
}