write
Writes the low-order 8 bits of b at the current position and advances the file pointer by 1.
Writes all bytes from b at the current position and advances the file pointer.
Writes len bytes from b starting at offset off at the current position and advances the file pointer by the number of bytes written.