(rontolisp) docs
← (scheme file)

call-with-input-file

(call-with-input-file string proc)

string という名前のファイルを open-input-file と同じように開き、そのポートを引数に proc を呼び、proc が戻ったらポートを閉じて、proc の返したものを返します。proc が戻らなければ、ポートは開いたままです。