chickadee » scheme » file » open-output-file

open-output-file stringprocedure
open-binary-output-file stringprocedure

Takes a string naming an output file to be created and returns a textual output port or binary output port that is capable of writing data to a new file by that name. If a file with the given name already exists, the effect is unspecified. If the file cannot be opened, an error that satisfies file-error? is signaled.