#613 $ chicken-doc scheme open-output-file -- procedure: (open-output-file filename [mode ...])
Takes a string naming an output file to be created and returns an output port capable of writing characters to a new file by that name. If the file cannot be opened, an error is signalled. If a file with the given name already exists, the effect is unspecified. Additional mode arguments can be passed in, which should be any of the keywords #:text, #:binary or #:append. #:text and #:binary indicate the mode in which to open the file (this has an effect on non-UNIX platforms only), while #:append indicates that instead of truncating the file on open, data written to it should be appended at the end. The extra mode arguments are CHICKEN extensions to the R5RS standard. > On Aug 24, 2023, at 9:55 AM, Lewis Levin <le...@neilson-levin.org> wrote: > > After installing r7rs, ‘open-output-port’ is a more complete implementation > with this signature: > open-output-file name . mode > I need documentation for what is allowed in mode. There is no functions > documentation anywhere for Chicken. I don’t think is satisfactory to say > “Chicken is standard” as there is no standard. A function may or may not be > provided. The function if provided may or may not work as it does in any > other scheme. Keyword arguments may or may not exist. Each implementation > may allow different optional arguments.