How to read .csv file extension in .net C#
How to read .csv fil开发者_JS百科e extension in .net C#
I just write my own - it's a one-liner!
using System.IO.File;
return ReadAllLines(@"C:\V3.txt").Select(line => line.Split(',')).ToList();
This will return a list where each item is a string[], contain each of the comma separated values.
FileHelper has mostly done the trick for me and it iss easy to use and has reasonable examples at the home page: http://www.filehelpers.com/
精彩评论