csv - Procedures to handle CSV data.
SYNOPSIS
package require Tcl 8.3
package require csv ?0.3?
|
The csv package provides commands to manipulate information
in CSV FORMAT (CSV = Comma Separated Values).
The following commands are available:
Each record of a csv file (comma-separated values, as exported e.g. by
Excel) is a set of ASCII values separated by ",". For other languages
it may be ";" however, although this is not important for this case
(The functions provided here allow any separator character).
If a value contains itself the separator ",", then it (the value) is
put between "".
If a value contains ", it is replaced by "".
COMMANDS
FORMAT
EXAMPLE
The record
123,"123,521.2","Mary says ""Hello, I am Mary""" |
is parsed as follows:
a) 123 b) 123,521.2 c) Mary says "Hello, I am Mary" |