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
proc
does 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-file
oropen-output-file
. The port andproc
are 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.