:sig
function file_write(handle : u64, value : string) u64

:params
handle : writable handle from `file_open`
value : bytes to write

:returns
The number of bytes written.

:content
`file_write` writes bytes at the current handle position. It advances the position.

:example capy render
var handle := file_open("/tmp/doc-write.txt", "w")
var count := file_write(handle, "hello")
file_close(handle)
print(count, " ", file_get_contents("/tmp/doc-write.txt"), "\n")

:see-group
file-handles
