Parsing CSV files in C#, with header -
is there default/official/recommended way parse csv files in c#? don't want roll own parser.
also, i've seen instances of people using odbc/ole db read csv via text driver, , lot of people discourage due "drawbacks." these drawbacks?
ideally, i'm looking way through can read csv column name, using first record header / field names. of answers given correct work deserialize file classes.
let library handle nitty-gritty details you! :-)
check out filehelpers , stay dry - don't repeat - no need re-invent wheel gazillionth time....
you need define shape of data - fields in individual line in csv - means of public class (and well-thought out attributes default values, replacements null values , forth), point filehelpers engine @ file, , bingo - entries file. 1 simple operation - great performance!
Comments
Post a Comment