Read a specific column from a csv file in C#

后端 未结 6 1387
天命终不由人
天命终不由人 2021-01-23 21:44

I have a simple 3 column csv file and i need to exctract only the information from the first column. I was thinking of regular expressions, but i am hoping there is an easier mo

6条回答
  •  南笙
    南笙 (楼主)
    2021-01-23 22:28

    You can read line by line and use the split method to split the line you have read into colums and keep the column you want. Here is a simple example on how to use the split method.

提交回复
热议问题