Reading CSV files using C#

后端 未结 12 2521
野的像风
野的像风 2020-11-21 22:49

I\'m writing a simple import application and need to read a CSV file, show result in a DataGrid and show corrupted lines of the CSV file in another grid. For ex

12条回答
  •  遥遥无期
    2020-11-21 23:23

    CSV can get complicated real fast.

    Use something robust and well-tested:
    FileHelpers: www.filehelpers.net

    The FileHelpers are a free and easy to use .NET library to import/export data from fixed length or delimited records in files, strings or streams.

提交回复
热议问题