Read a specific column from a csv file in C#

后端 未结 6 1388
天命终不由人
天命终不由人 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条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-23 22:24

    I'd go like this : load the csv file to a datatable and then handle it however i want, by column, or by row. here's a link with some directions

提交回复
热议问题