Re: globing filenames via clojure

2009-12-14 Thread Scott
Thanks Travis this was exactly what I was looking for: (import '(java.io File)) (first (filter #(re-matches #".*\.txt" %) (.list (File. "./") ))) I am using the csv parser from : http://github.com/davidsantiago/clojure-csv I would enjoy seeing your implementation On Dec 13, 2:19 am, Travis wr

Re: globing filenames via clojure

2009-12-12 Thread Travis
On Dec 12, 11:20 am, Scott wrote: > Trying to learn clojure via some simple examples. > > I would like to use a simple glob expression to open a file using read- > line > > How would I write the equivalent of: > > (for [line (read-lines "*.txt")] >     (print line)) > > Where *.txt would match o