![]() ![]() What if there's a bug in the roll-your-own code?.That said, having looked at a few myself and having some very basic requirements (really no edge cases), the question again came up as to whether to roll my own or use a library. Even more interesting (to me at least), he references RFC-4180 which documents Common Format and MIME Type for Comma-Separated Values (CSV) Files. That last link is quite comprehensive in parsers that Tomas Takac evaluated and has a great graph of the finite state machine to parse CSV data. Why to build your own CSV parser (or maybe not).The article references a couple projects, CsvHelper and TinåsvParser and one can easily find several CSV parsers on Code Project: NET Core which is a useful example (which I ignore here) of some edge cases - certainly not all of them. My coworker brought this particular article to my attention: CSV Parsing in. This subject has been pretty much beaten to death and there definitely are many libraries in every language under the sun to parse CSV files. rolling your own, specifically regarding parsing a comma separated value (CSV) data, or more generally, any text data separated by a known delimiter. I was having this conversation with a coworker about using a third-party library vs. ![]() F# Implementation Without Generic Class. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |