From: "ara.t.howard" Date: 2008-10-01T00:29:24+09:00 Subject: Re: C fwrite equivalent in ruby On Sep 30, 2008, at 9:09 AM, Lyes Amazouz wrote: > Hello list > > I want to know if there is an equivalent to the C function fwrite in > ruby. > Remeber that fwrite takes a buffer and a size of Bytes to write. > > the method "write" of the File object takes only the buffer to write > as a > parameter, but what I want to do is to write only an amount of bytes > from > this buffer, not all the buffer. > > Thank you! > -- > =========== > | Lyes Amazouz > | USTHB, Algiers > =========== io.write buffer[0,len] a @ http://codeforpeople.com/ -- we can deny everything, except that we have the possibility of being better. simply reflect on that. h.h. the 14th dalai lama