How can I read and write CSV in a way similar to NET FileHelpers?

后端 未结 7 616
感动是毒
感动是毒 2021-02-03 12:11

Anyone know how I can import/export csv, txt files in a way similar to NET FileHelpers, but using Delphi, taking spaces and quotes into account and handling traditional CSV esca

7条回答
  •  说谎
    说谎 (楼主)
    2021-02-03 12:38

    Following the VCL TXMLTransform logic, I wrote a TCsvTransform class helper that translates a .csv format structure to /from a TClientDataSet.
    For more details about TCsvTransform, cf http://didier.cabale.free.fr/delphi.htm#uCsvTransform.
    NB: I set the same field type symbols as Warren's TJvCsvDataSet

提交回复
热议问题