From: Robert Klemme Date: 2008-10-01T05:59:58+09:00 Subject: Re: C fwrite equivalent in ruby On 30.09.2008 17:43, Mark Thomas wrote: > On Sep 30, 11:29 am, "ara.t.howard" wrote: >> io.write buffer[0,len] One additional remark: String#[] does not copy the internal buffer, so you do not have to worry about wasting too much memory. > or call io.putc(byte) as many times as necessary. This is likely inefficient. Kind regards robert