This is solved. I am adding a blank field, which gets me my trailing comma.

On Tuesday, November 6, 2012 2:40:19 PM UTC-5, octopusgrabbus wrote:
>
> Is it possible to add an unquoted comma at the end of a Clojure sequence, 
> while using clojure.data.csv's write-csv?
>
> (defn write-csv-file
>   "Writes a csv file using a key and an s-o-s"
>   [out-sos out-file]
>
>   (if (= dbg 1)
>     (println (first out-sos), "\n", out-file))
>
>   (spit out-file "" :append false)
>   (with-open [out-data (io/writer out-file)]
>       (csv/write-csv out-data out-sos)))
>
> This code writes my sequence of sequences out just fine. All I want to do is 
> add a trailing comma.
>
>
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to