Auto-detect CSV Separator

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
CSV files are very popular for storing tabular data because they are simple textual files with a very few rules. This makes them very interoperable because CSV readers and writers are relatively easy to implement. Interoperability is, probably, the first reason why would someone choose to save the data in CSV format. In order to build a generic CSV reader that will read CSV file regardless of the separator, the reader must first figure out which character is used as a separator. This article gives one possible solution to this problem.

View the full article
 
Back
Top