Created
September 27, 2013 11:44
-
-
Save grav/6727373 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(require '[clojure.java.io :as io]) | |
(defn save-url [url filename] | |
(let [in (io/input-stream (io/as-url url)) | |
out (io/output-stream (io/as-file filename))] | |
(io/copy in out))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment