是否存在“正确”方式读取CSV文件
问题描述:
可能重复:
CSV文件导入.Net
In .net, is there a standard library that should be used to read in csv files? All the samples on the web roll their own csv reader / parser, or use OleDb.
使用这些解决方案不是问题,我只是想知道是否一个普遍接受的库(不是我可以找到的),或任何其他正确的方式来做这个?
It's not a problem using any of these solutions, I was just wondering if there is a generally accepted library (not that I can find), or any other "proper" way to do it?
答
CsvReader 是一个相当不错的...它不是微软,但它的工作非常好,并且比一些替代品(传统OleDb等)快很多。
CsvReader is a pretty good one... it isn't Microsoft, but it works very well, and is a lot faster than some of the alternatives (legacy OleDb etc).