CSV reader/writer to/from Clojure data structures.
Follows the RFC4180 specification but is more relaxed.
Latest stable release: 0.1.2
Leiningen dependency information:
[org.clojure/data.csv "0.1.2"]
Maven dependency information:
<dependency>
<groupId>org.clojure</groupId>
<artifactId>data.csv</artifactId>
<version>0.1.2</version>
</dependency>
(require '[clojure.data.csv :as csv]
'[clojure.java.io :as io])
(with-open [in-file (io/reader "in-file.csv")]
(doall
(csv/read-csv in-file)))
(with-open [out-file (io/writer "out-file.csv")]
(csv/write-csv out-file
[["abc" "def"]
["ghi" "jkl"]]))
Refer to the API documentation for additional information.
Release 0.1.2 on 2012-02-24
write-csv
Release 0.1.1 on 2012-02-14
Release 0.1.0 on 2011-08-26
Copyright (c) Jonas Enlund, 2012. All rights reserved. The use and distribution terms for this software are covered by the Eclipse Public License 1.0 (http://opensource.org/licenses/eclipse-1.0.php) which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove this notice, or any other, from this software.
Can you improve this documentation? These fine people already did:
Jonas Enlund & Trent OgrenEdit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close