有没有“合适的"?读取CSV文件的方法 [英] Is there a "proper" way to read CSV files
问题描述
可能的重复:
.Net 中的 CSV 文件导入
在 .net 中,是否有应该用于读取 csv 文件的标准库?网络上的所有示例都使用自己的 csv 阅读器/解析器,或者使用 OleDb.
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 是一个不错的选择...它不是 Microsoft,但它运行良好,并且比某些替代品(旧版 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).
这篇关于有没有“合适的"?读取CSV文件的方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!