Function IODev.write

Write a chunk of data to the output stream

ulong write (
  const(ubyte)[] data
);

returns the number of bytes written on success.

If 0 is returned, then the stream cannot be written to.