是否有与QUOT;适当"方法来读取CSV文件 [英] Is there a "proper" way to read CSV files

查看:218
本文介绍了是否有与QUOT;适当"方法来读取CSV文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可能重复:
  在.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).

这篇关于是否有与QUOT;适当"方法来读取CSV文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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