[plt-scheme] reading a whole file

From: Shriram Krishnamurthi (sk at cs.brown.edu)
Date: 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.


Posted on the users mailing list.