[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

io.write with buffer size?

axel.friedrich_smail

7/21/2006 10:29:00 AM

Hello all,

is there a way to do an io.write _with a certain buffer size_ ?

I need to do the same as somebody else did in TcL like this:

fconfigure $file -buffersize 16 -buffering none -encoding binary
-translation binary

puts -nonewline $file [binary format "h*" $string]


Thanks

Axel

OS: Linux
Ruby 1.8.4