-
Notifications
You must be signed in to change notification settings - Fork 86
csv read
Chris Petersen edited this page Oct 16, 2014
·
1 revision
csv-read reads a csv file and converts it into a list of lists. Each list is one row where the items are cells and the whole file becomes a list of these lists. The lines of the file are divided by using both #\newline and #\x0d to do the splitting, but if the #\x0d occurs within quotation marks, then it is not used to split the line.
Parameter | Description |
---|---|
file | CSV file to read data from |
Example 1: Write a few values to a file and read them back.
./DemoConsole
> (csv-write "test.csv" (list (list "Name" "Age" "Color") (list "John" 30 "red") (list "Mike" 20 "blue") (list "Paul" 25 "")))
> (csv-read "test.csv")
(("Name" "Age" "Color") ("John" "30" "red") ("Mike" "20" "blue") ("Paul" "25" ""))
-
- accelerometer
- alist
- audio
- audioaux
- base64
- btle-scan
- camera
- cdb
- cgi
- config
- csv
- curl
- digest
- dmtx
- download
- eventloop
- fcgi
- fft
- generalized-arrays
- gps
- graph
- gyro
- hidapi
- hpdf
- html
- httpsclient
- hybridapp
- json
- lmdb
- ln_core
- ln_glcore
- ln_glgui
- ln_store
- localization
- localization_gui
- localnotification
- magnetometer
- mdns
- mqtt
- mqtt-store
- multitouch
- oauth
- orientation
- p256ecdsa
- png
- portaudio
- pregexp
- pressure
- prime
- pushnotification
- redcap
- rsa
- rtaudio
- rupi
- rotation
- sanestring
- scheduler
- serial
- sets
- settings
- simplexnoise
- sqlite
- ssax
- syntax-case
- timestamp
- ttf
- uiform
- url
- uuid
- vibrate
- videoplayer
- watchdog
- website
- xml
- zip