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.