dio_write
Writes data to fd with optional truncation at length
Description
intdio_write
resourcefd
stringdata
intlen
The function dio_write writes up to
len bytes from data
to file fd. If len
is not specified, dio_write writes all
data to the specified
file. dio_write returns the number of bytes
written to fd.