Re: read txt file

2009-08-21 Thread tmountain
Just an FYI, you can also use the builtin slurp function, which will return the contents of a given file. (slurp "file.txt") Regards, Travis On Aug 21, 4:11 am, DemAS wrote: > Hi all, > >    I have created the function that read a txt file.  I have a very > little experience in clojure and I w

Re: read txt file

2009-08-21 Thread Meikel Brandmeyer
Hi, On Aug 21, 10:11 am, DemAS wrote: >    I have created the function that read a txt file.  I have a very > little experience in clojure and I will be thankfull for any > correction and ideas. For the record: see (doc line-seq) But here some suggestions, since learning clojure is your main

read txt file

2009-08-21 Thread DemAS
Hi all, I have created the function that read a txt file. I have a very little experience in clojure and I will be thankfull for any correction and ideas. This is source code: (defn create-freader [filename] (def f-reader (new java.io.FileReader filename)) f-reader) (defn create-br