blob: 2308b772af74b9ef4877da868c489683d8cb9c3a [file] [log] [blame]
SYNOPSIS
int write_bytes(string file, int start, bytes str)
DESCRIPTION
Write string str to file file by overwriting the old bytes at
position start. If start is a negative value then it will be
counted from the end of the file. The file will not be
appended, instead the function will be aborted. Returns 1 for
success 0 for failure during execution.
Note: since version 3.2@232, write_bytes() is able to append
to the file.
SEE ALSO
save_object(E), write_file(E)