Parth Malwankar wrote: > > > On Nov 24, 12:34 am, Stuart Sierra <[EMAIL PROTECTED]> > wrote: >> Honestly, for this kind of low-level stuff I always use the Apache >> Commons libraries, <http://commons.apache.org/>, esp. the Lang and IO >> components. They've got every imaginable stream function, all >> carefully and efficiently implemented. But if you're determined to do >> it in Clojure, loop/recur is the way, as James demonstrated. >> -Stuart Sierra > > Yes. commons.io.FileUtils.copyFile is definitely a nicer way :) > I am still learning Java (as an when I need it for Clojure). Thanks > for the pointer. >
>From another learner --really a java-ignoramus-extremus: Would someone take pity and give a clojure recipe for using commons.io.FileUtils.copyFile to copy "fileA" to "fileB" (say). I have found and installed commons.io via package manager and it ended up in /usr/share/java/commons-io.jar. Was that the right thing to do? The rest of java seems to live under /usr/java/jdk1.6.0_10/ I am starting REPL via the rlwrap script posted on the wiki. My first stumbling block seems to be how to do the import! :-( TIA, ..jim --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---
