AtlatestRepositorysigil-r7rs

sigil-r7rs / tree / src / schemefile.sgl

1;;; (scheme file) - R7RS File Library
2;;;
3;;; File input/output operations for opening, reading, and writing files.
4;;;
5;;; See: [R7RS Small](https://small.r7rs.org/) §6.13.1
6;;;
7;;; For extended filesystem operations (directories, globs, metadata),
8;;; use `(sigil fs)` instead.
9
10(define-library (scheme file)
11 (import (sigil io))
12 (export call-with-input-file
13 call-with-output-file
14 with-input-from-file
15 with-output-to-file
16 open-input-file
17 open-output-file
18 open-binary-input-file
19 open-binary-output-file
20 file-exists?
21 delete-file))
23;;; File operations are provided by (sigil io) and native builtins.