Writing and opening files in Scheme.
Scheme, a Lisp dialect.
Date Created:Sunday September 14th, 2008 07:41 PM
Date Modified:Sunday September 14th, 2008 07:48 PM
(define infile (open-input-file "readthis.txt")) (read infile) (read infile) (close-input-port infile)
(let ((port (open-output-file "write.txt"))) (show-line '(This is the first line) port) (show-line '(321 123 14 41) port) (close-output-port port) )
Downloads:
Download: read.scm 109 B
Download: writing.scm 162 B
Please login or Click Here to register for downloads
Reading and writing files by Dan Lynch
is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 United States License
Based on a work at www.3daet.com
Permissions beyond the scope of this license may be available at http://www.3daet.com
