I'm using pmap to run a bunch of compute intensive jobs that output to
files. Afterwards I need to combine them into one file (in a particular
order). Are there any tools to do a file concat? I found the fs library on
github, but it doesn't appear to have a concat or append. Perhaps I should
You could use clojure.java.io:
(require [clojure.java.io :as io])
(defn cat-files [output-file input-files]
(with-open [stream (io/output-stream output-file)]
(doseq [file input-files]
(io/copy (io/file file) stream
-S
--
You received this message because you are subscribed