是否存在“正确”方式读取CSV文件 [英] Is there a "proper" way to read CSV files

查看:167
本文介绍了是否存在“正确”方式读取CSV文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


可能重复:

CSV文件导入.Net





<是否有一个标准库,应该用于读入csv文件? web上的所有示例都会使用自己的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 是一个相当不错的...它不是微软,但它的工作非常好,并且比一些替代品(传统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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆