我如何知道Csv文件中的列数? [英] How Do I Know About The Number Of Columns In A Csv File ?

查看:804
本文介绍了我如何知道Csv文件中的列数?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我怎么知道csv文件中的列数?
我将如何识别金额值就像

职位名称工资地点
23 abc 2,000 YTVV
45 bdc 1,00,000 jjkk

那么我们将如何读取此becos CSV始终在每个逗号之后读取值.

how do i know about the number of columns in a csv file ?
and how will i identify of the amount value is like

eroll name salary location
23 abc 2,000 YTVV
45 bdc 1,00,000 jjkk

then how will we read this becos CSV always reads value after each comma.

推荐答案

很久以前,我使用了名为 ^ ]到处理文件.看看吧.
Long time back I have used free library called File helpers[^] to work with files. Have a look at it.


请参考此链接

http://www.dotnetperls.com/csv-file [ ^ ]
Please refer this link

http://www.dotnetperls.com/csv-file[^]


这篇关于我如何知道Csv文件中的列数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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