如何在Windows应用程序中读取Csv文件列明智?
问题描述:
嗨
我想按列读取csv文件并将其存储在list.not中行。
例如:
Hi
I want to read csv file columnwise and store it in a list.not row wise.
For eg:
country,equity
780,880
990,875
我想插入列表中
I want to insert into a list as
country equity
780 880
990 875
How can i store columnwise in a list.Please help.urgent.
答
使用此:快速CSV阅读器 [ ^ ]
刚刚注意到类似的一个。
如何使用c#从csv文件中读取 [ ^ ]
Just noticed a similar one.
How to read from csv file using c#[^]
您好,
我认为以下链接可以帮助您。
使用C#读取CSV文件 [ ^ ]
使用C#中的TextFieldParser读取CSV文件并在DataTable中获取记录 [ ^ ]
Hi,
I think below links will help you.
Read CSV file using C#[^]
Read CSV file and Get Record in DataTable using TextFieldParser in C#[^]