On Mon, 11 Aug 2008 21:52:20 -0400, MC wrote:
>Strings are usually quoted and arrays not used in CSV, so some types
can be ruled out.
Speaking of which, is there an "official syntax" for CSV files
somewhere, and/or a C# tool to parse them?
I would strongly recommend that you don't use CSV at all. I believe that
CSV is the worst possible method of delivering data. I am aware of Excel
exporting data to CSV that imported differently.
Different programs do that handle Quotes properly for example 'O'Donnell'
should be 'O''Donnell'. If you have quote comma you are totally lost
'1 degree 0', something' A parser would take that as two fields, but is
it extracted as :1 degree 0:, :something': or as :something:. You can
never tell.
Ken
Ken