[gambit-list] Reading a file
Marc Feeley
feeley at iro.umontreal.ca
Thu Apr 5 18:49:14 EDT 2012
On 2012-04-05, at 6:40 PM, Steve Graham wrote:
> What procedure is used to read a text line from a file in Gambit?
> (call-with-input-file "~~lib/digest#.scm"
(lambda (port) (read-line port)))
";;;============================================================================"
> (call-with-input-file "~~lib/digest#.scm"
(lambda (port) (read-all port read-line)))
(";;;============================================================================"
""
";;; File: \"digest#.scm\", Time-stamp: <2009-02-19 16:22:22 feeley>"
""
";;; Copyright (c) 2005-2009 by Marc Feeley, All Rights Reserved."
""
...
Marc
More information about the Gambit-list
mailing list