call-with-input-file -- r7rs Definition procedure;
call-with-input-file (from vonuvoli);Procedure variants:
((path-string procedure-1) -> (any))
path-string;procedure-1;any;scheme:file -- (scheme file);scheme -- (scheme);(call-with-input-file string proc) (call-with-output-file string proc)Domain: It is an error if
procdoes not accept one argument.These procedures obtain a textual port obtained by opening the named file for input or output as if by
open-input-fileoropen-output-file. The port andprocare then passed to a procedure equivalent tocall-with-port.
The text herein was sourced and adapted as described in the "R7RS attribution of various text snippets" appendix.