I have this:
(import 'java.lang.Runtime)
(defn foo []
(println (.getOutputStream (. (Runtime/getRuntime) exec "pwd"))))
It successfully returns a java.io.OutputStream (java docs here: http://docs.oracle.com/javase/1.5.0/docs/api/java/io/OutputStream.html
How do I now write this stream using clojure/java interop? I want to get a string of the 'pwd' command.
Thanks