This package reads and writes CSV files.
License:
AGPL3
Copyright Pascal J. Bourguignon 2003 - 2015
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program.
If not, see <http://www.gnu.org/licenses/>
|
(load-records path &key external-format element-type if-end-of-file-in-last-record field-separator decimal-point) |
function |
RETURN: A list of rows, each row being a list of cells.
PATH: A pathname designator of the CSV file to read.
EXTERNAL-FORMAT: The external format.
ELEMENT-TYPE: The type of element of the file (should be
CHARACTER or a subtype of CHARACTER).
IF-END-OF-FILE-IN-LAST-RECORD: :ERROR or :IGNORE.
FIELD-SEPARATOR: The field separator; default: #,
DECIMAL-POINT: The decimal point; default: #.
|
(write-record fields &optional out) |
function |
DO: write the record FIELDS to the stream OUT (default
*STANDARD-OUTPUT*).