mirror of
https://github.com/justinethier/cyclone.git
synced 2025-07-13 15:57:36 +02:00
Initial file
This commit is contained in:
parent
8d72cfaff1
commit
aefb75c807
1 changed files with 12 additions and 0 deletions
12
scheme/file.sld
Normal file
12
scheme/file.sld
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
(define-library (scheme file)
|
||||||
|
(export
|
||||||
|
call-with-input-file
|
||||||
|
call-with-output-file
|
||||||
|
)
|
||||||
|
(import (scheme base))
|
||||||
|
(begin
|
||||||
|
(define (call-with-input-file string proc)
|
||||||
|
(call-with-port (open-input-file string) proc))
|
||||||
|
(define (call-with-output-file string proc)
|
||||||
|
(call-with-port (open-output-file string) proc))
|
||||||
|
))
|
Loading…
Add table
Reference in a new issue