csv file

csv file format

Any internal code format, may be ASCII, Unicode, or others.

It may or may not contain the name of the column, including the column name in first line of the file.

One record per line, a comma as a delimiter field.

Each record has the same sequence of fields.

But also as a space to express their existence by commas (no comma between the two characters only)

Space before and after the comma will be ignored

Field contains the spaces before and after, this field must be enclosed in double quotes

Field contains a comma, the field must be enclosed in double quotes

Field contains a line break, this field must be enclosed in double quotes
field double quotation marks represented by two double quotes
field if double quotes, this field must be enclosed in double quotes
first record may be a field name
 

Guess you like

Origin www.cnblogs.com/liliuwei/p/11230826.html