Hi Guys,

I'm pretty new of clojure so sorry for the maybe stupid question...

Anyway, i'm looking for read a file byte by byte, perfect would be get
a lazy-seq of every byte in the file, it's looks, for me, very weird
that there isn't a built-in or some easy way to do that, but I haven't
find nothing, it's possible that I haven't search enough ?

To be honest, I need to read N byte at time (where I know N before to
read) so I can built anytime a bite-array and put in the necessary
byte which (def stream (new java.io.FileInputStream filename))
(def vettore (byte-array N))
(.read stream vettore)

But i really don't like this way, the (.read ) is horrible, I guess...

Any suggest ?

-- 
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

Reply via email to