由网友(浅笑°)分享简介:我如何可以加载一个CSV文件导入一个System.Data.DataTable,创建数据表基础上的CSV文件?How can I load a CSV file into a System.Data.DataTable, creating the datatable based on the CSV file?有一...
我如何可以加载一个CSV文件导入一个System.Data.DataTable,创建数据表基础上的CSV文件?
How can I load a CSV file into a System.Data.DataTable, creating the datatable based on the CSV file?
有一个类库获得本产品或我可以用ADO.net连接到文件?
Is there a class library for this or can I use ADO.net to connect to the file?
推荐答案
下面是将使用的数据结构来创建数据表CSV数据复制到一个DataTable一个很好的类:
Here's an excellent class that will copy CSV data into a datatable using the structure of the data to create the DataTable:
便携,高效的通用解析器平面文件
这是很容易配置和易于使用。我强烈建议你去看看。
It's easy to configure and easy to use. I urge you to take a look.
相关推荐
最新文章