From aefb75c807983fbfccd7a01524f40d6ff20e8724 Mon Sep 17 00:00:00 2001 From: Justin Ethier Date: Mon, 22 Jun 2015 22:44:45 -0400 Subject: [PATCH] Initial file --- scheme/file.sld | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 scheme/file.sld diff --git a/scheme/file.sld b/scheme/file.sld new file mode 100644 index 00000000..277c6365 --- /dev/null +++ b/scheme/file.sld @@ -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)) +))