Let's say I've got a finite, unknown number of valid clojure forms in a file, say like this:
(foo)(bar)[blah blah blah](and one more) (note there is a vector sandwiched in there too) Let's say I open this file and want to use it with read: (read f) => (foo) I do it again, and: (read f) => (bar) Not what I want...I need all this data, not each one individually. What's the idiomatic clojure way to basically drain this file of clojure data structures (say, put them in a lazy seq)? I'm guessing that I need to call (read f) in some sort of do* method, wrapped in a (try ... (catch)) block for when I encounter end-of-file, but I really don't understand side effects and file handling in clojure too well. Any advice? Thanks guys... Mike -- 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