File Handling

function delete-file filename

does remove (filename) succeed?

Param filename:

file to delete

Type filename:

string

Return:

#t on success

Raises ^i/o-filename-error:

if filename contains an ASCII NUL

Raises ^file-handle-error:

function call-with-input-file file proc

return the result of calling proc with a file handle open to file for input

Param file:

file name

Type file:

string

Param proc:

function of 1 argument

Type proc:

function

Return:

result of calling proc

Rtype:

any

function call-with-output-file file proc

return the result of calling proc with a file handle open to file for output

Param file:

file name

Type file:

string

Param proc:

function of 1 argument

Type proc:

function

Return:

result of calling proc

Rtype:

any

function with-input-from-file file thunk

return the result of calling thunk in the context of the current input handle being a file handle open to file for input

Param file:

file name

Type file:

string

Param thunk:

function of 0 arguments

Type thunk:

function

Return:

result of calling thunk

Rtype:

any

function with-output-to-file file thunk

return the result of calling thunk in the context of the current output handle being a file handle open to file for output

Param file:

file name

Type file:

string

Param thunk:

function of 0 arguments

Type thunk:

function

Return:

result of calling thunk

Rtype:

any

Last built at 2024-05-17T06:10:47Z+0000 from 62cca4c (dev) for Idio 0.3.b.6