Re: [SOLVED] writing binary values (bytes) to a file

2008-11-19 Thread prhlava
Hello again, Thank you all for the posts and explanations, After getting the clojure SVN version and few tweaks in the code, the working result looks like: (with-open [ofile (new java.io.FileOutputStream (str result-directory

Re: [SOLVED] writing binary values (bytes) to a file

2008-11-19 Thread Mark Volkmann
On Wed, Nov 19, 2008 at 2:45 PM, prhlava <[EMAIL PROTECTED]> wrote: > > > Hello again, > > Thank you all for the posts and explanations, > > After getting the clojure SVN version and few tweaks in the code, the > working result looks like: > > (with-open [ofile (new java.io.Fil

Re: [SOLVED] writing binary values (bytes) to a file

2008-11-19 Thread Stuart Halloway
Hi Mark, The metadata points to the source: user> (meta #'with-open) {:doc "bindings => name init\n\n Evaluates body in a try expression with name bound to the value of\n init, and a finally clause that calls (.close name).", :ns #, :arglists ([bindings & body]), :file "core.clj", :name

Re: [SOLVED] writing binary values (bytes) to a file

2008-11-19 Thread Graham Fawcett
On Wed, Nov 19, 2008 at 4:49 PM, Mark Volkmann <[EMAIL PROTECTED]> wrote: > > On Wed, Nov 19, 2008 at 2:45 PM, prhlava <[EMAIL PROTECTED]> wrote: >> >> >> Hello again, >> >> Thank you all for the posts and explanations, >> >> After getting the clojure SVN version and few tweaks in the code, the >>

Re: [SOLVED] writing binary values (bytes) to a file

2008-11-19 Thread Mark Volkmann
Thanks Stu! I wasn't aware of the meta function. That helps a lot! I looked for occurrences of "(meta " throughout the clojure and clojure-contrib repositories, but I didn't find a function that prints the code for a given function. That would be incredibly useful for learning! Does anybody know