On Thu, Oct 8, 2009 at 9:45 AM, Tom Faulhaber <tomfaulha...@gmail.com>wrote:
> > Check out clojure.contrib.duck-streams/reader and clojure.contrib.duck- > streams/writer (http://richhickey.github.com/clojure-contrib/duck- > streams-api.html). > > They'll give you a java.io.BufferedReader or a java.io.PrintWriter > which is usually what you want with a file. If you have some other > use, you can look at the source (linked from the above doc) and see > how Stuart did the multimethods. > > Thanks for pointing out that, I'll review the code (I really should review the core and contrib code to get a feel for idiomatic code). I'm working on a set of file utilities that manipulate files and directories rather than streams (find-files, mv, cd, pwd, rm, mkdir, etc). I'm forcing myself to use clojure for all my scripting and the first set of scripts did a bunch of file/dir searching and manipulation and rather than calling java.io.File calls and org.apache.commons.io.FileUtils I was going to try and write a idiomatic Clojure wrapper (my first real Clojure code ... my first real functional lang or lispy code). --Robert --~--~---------~--~----~------------~-------~--~----~ 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 Note that posts from new members are moderated - please be patient with your first post. 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 -~----------~----~----~----~------~----~------~--~---