does anyone else think that should be more fundamental like the python example? imagine saying that out loud to your friend who asks . . . and the amount of noise, visually:
"use clojure dot contrib dot duck dash streams". perhaps it is already the hope that it will "spit" will eventually sit next to "slurp"? I had thought of "java.io.FileWriter. "/path/to/your/file" . . .. but it's sometimes the case that using the jvm is acceptable enough, but learning the java libraries isn't ... because then folks are learning two languages and it also really ties a basic thing to the java language. Thanks for the answer. On Tue, Mar 24, 2009 at 2:10 PM, Stuart Sierra <the.stuart.sie...@gmail.com>wrote: > > On Mar 24, 12:42 pm, Parth Malwankar <parth.malwan...@gmail.com> > wrote: > > user=> (with-open [f (writer (file "test.txt"))] > > (binding [*out* f] > > (println "hello world !!!"))) > > Or even more simply: > > (use 'clojure.contrib.duck-streams) > (spit "test.txt" "Hello, world!\n") > > -Stuart Sierra > > > --~--~---------~--~----~------------~-------~--~----~ 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 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 -~----------~----~----~----~------~----~------~--~---