Skip to content

read-csv is a lisp library for reading CSV (comma-separated value) files like the ones exported from Excel.

License

Notifications You must be signed in to change notification settings

WarrenWilkinson/read-csv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

read-csv

read-csv is a stream oriented CSV (comma-separated value) reader.

  • Small (~50 lines of code)
  • Supports quotes, including newlines and separator characters within the quotes.
  • Supports Unix style LF line endings and Dos CRLF line endings. (automatically)
(ql:quickload 'read-csv)
(use-package :read-csv)
(with-open-file (s "/path/to/csv")
  (parse-csv s))
;; Returns a list of lists of strings.

Tests

Once the system is loaded, it can be tested with asdf.

(asdf:operate 'asdf:test-op :read-csv)
RUNNING READ-CSV TESTS...
READ-CSV TEST RESULTS:
   Tests: 519
 Success: 519
Failures: 0

License

Read-csv is public domain.

About

read-csv is a lisp library for reading CSV (comma-separated value) files like the ones exported from Excel.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •