是否有与QUOT;适当"方法来读取CSV文件方法来、适当、文件、QUOT

2023-09-02 01:39:30 作者:命硬

可能重复:   在.net

Possible Duplicate: CSV File Imports in .Net

在.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 是一个pretty的好的......这不是微软,但它工作得很好,和很多比一些替代品(传统的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).

 
精彩推荐
图片推荐