:sig
function file_temp(prefix : string) string

:params
prefix : path prefix for the temporary file

:returns
The new empty file path. Returns `""` on failure.

:content
`file_temp` creates an empty file with a unique suffix.

:example capy render
var path := file_temp("/tmp/doc-temp-")
if path != "" {
    file_put_contents(path, "scratch")
    print(file_get_contents(path), "\n")
    file_unlink(path)
}

:see-group
files
