написать в файл (write on a file)
Возвращаемое значение (Return value)
Upon successful completion, these functions shall return the
number of bytes actually written to the file associated with
fildes. This number shall never be greater than nbyte.
Otherwise, -1 shall be returned and errno set to indicate the
error.