Comma-Separated Values (CSV)

Introduction

According to Wikipedia

A comma-separated values (CSV) file is a delimited text file that uses a comma to separate values. Each line of the file is a data record. Each record consists of one or more fields, separated by commas. The use of the comma as a field separator is the source of the name for this file format. A CSV file typically stores tabular data (numbers and text) in plain text, in which case each line will have the same number of fields.

-- Wikipedia (the free encyclopedia)

Specification

While there is no formal specification that covers all uses for CSV files, there does exist a formal RFC, RFC 4180, that defines a CSV file as:

This specification is quite broad and vague in some areas and hence the lack of a formal specification. Depending on the application using the CSV, some specifications may be added that aren't consistent with each other.

Basic Rules

Because of the lack of a formal specification, some common rules have arisen that are inconsistently applied. In the RFC 4180, when the MIME type is applied, these rules should apply.

Applications

Some applications use CSV as a data exchange format to enhance interoperability. As such CSVs are supported by most database & spreadsheet systems.

References

Web Links

Note Links