with-output-to-file

[procedure] with-output-to-file string thunk

R5RS

See also call-with-output-file, with-input-from-file.

[procedure] with-output-to-file string thunk [if-exists]

ChezScheme extends R5RS to take optional argument.

[procedure] with-output-to-file string thunk [mode]

Chicken extends R5RS to take mode argument: #:text, #:binary or #:append.

[procedure] with-output-to-file string thunk [options ...]

Gauche extends R5RS to take optional keyword arguments.