Parsing CSV File enclosed with quotes in C#

后端 未结 10 2055
一整个雨季
一整个雨季 2021-01-21 05:50

I\'ve seen lots of samples in parsing CSV File. but this one is kind of annoying file...

so how do you parse this kind of CSV

\"1\",1/2/2010,\"The sample (\"adas

10条回答
  •  庸人自扰
    2021-01-21 06:14

    Split based on

    ",

    I would use MyString.IndexOf("\","

    And then substring the parts. Other then that im sure someone written a csv parser out there that can handle this :)

提交回复
热议问题