reading csv file c#

前端 未结 4 496

is there any way to read a csv file into a matrix, so every square in the file will be a cell in the matrix?

4条回答
  •  醉梦人生
    2021-01-07 11:22

    There is a text reader in the VisualBasic namespace that can be used in C# and handles even horrible CSV files very well:

    TextFieldParser

    Just add a reference to Microsoft.VisualBasic in your project.

提交回复
热议问题