:sig
function file_pread(handle : u64, offset : u64, length : u64) string

:params
handle : readable handle returned by `file_open`
offset : absolute byte offset
length : maximum number of bytes to read

:returns
A string with up to `length` bytes.

:content
`file_pread` reads at an absolute byte offset. It accepts a maximum length of 16 MiB. It does not change the handle position.

:example capy render
var writer := file_open("/tmp/doc-pread.txt", "w")
file_write(writer, "hello world")
file_close(writer)
var reader := file_open("/tmp/doc-pread.txt", "r")
print(file_pread(reader, u64(6), u64(5)), "\n")
file_close(reader)

:see-group
file-handles
