csvspecs

How is a csvfile structured/specified?


Can anyone tell me how a csv-file is structured because i need to code a parser.


Solution

  • In a CSV-File the Columns are seperated by ',', the Rows by Newlines respectively. The First Row contains the indentifiers for the columns. If there is any occurence of delimiters in the content, it need to be escaped by an '"' or the content needs to be literal. RFC: https://www.rfc-editor.org/rfc/rfc4180