fs.write(fd, buffer, offset, length[, position], callback)
Write buffer to the file specified by fd.
offset and length determine the part of the buffer to be written.
position refers to the offset from the beginning of the file where this data should be written. If typeof position !== 'number', the data will be written at the current position. See pwrite(2).
The callback will be given three arguments (err, written, buffer) where written specifies how many bytes were written from buffer.
Not