Hello all,

I have started to play with the clojure a day ago and today I have
almost finished porting simple program (from plt-scheme).

The place I got stuck in is - how to write a binary value (multiple
bytes) in one write operation to a file... The code uses
java.io.FileWriter, but this wants string.

What I need to write is 3 RHS bytes from an integer, (the pix is
Integer in following code):

(. ofile write (str
                                           (char (bit-shift-right pix 16))
                                           (char (bit-shift-right pix 8))
                                           (char pix)))
                           )

writes wrong stuff. Is this unicode thing, my noob status thing or
something else?

Kind regards,

Vlad

--~--~---------~--~----~------------~-------~--~----~
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
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to