[plt-scheme] reading a whole file

Shriram Krishnamurthi sk at cs.brown.edu
Tue Nov 4 11:00:59 EST 2008


Yes if you're doing only one string.  It's nice to be able to say

  (define c ...contents of file...)

  (match ... c)
  (match ... c)

as you formulate and test hypotheses about the content of the file.
That is, it's nice to type the code to get the file content just once,
rather than over and over again.

Shriram



More information about the plt-scheme mailing list