[plt-scheme] ignoring metadata

Robby Findler robby at cs.uchicago.edu
Sun Dec 9 21:26:06 EST 2007


You can do (read-line) three times and throw away the results (but
there may be a different number of lines in some future version
(hopefully not ...) so I'd suggest doing some checking, like looking
for ";" at the start of the first two and "#reader" at the start of
the third).

Robby

On Dec 9, 2007 8:23 PM, Prabhakar Ragde <plragde at uwaterloo.ca> wrote:
> If someone creates a file containing S-expressions for me, but happens
> to do so by using DrScheme with one of the teaching languages selected,
> then there are three lines of metadata at the top of the resulting file,
> two comments and a #reader expression. If I use (read) to process the
> file, how do I get it to ignore the #reader expression? Thanks. --PR
> _________________________________________________
>   For list-related administrative tasks:
>   http://list.cs.brown.edu/mailman/listinfo/plt-scheme
>



More information about the plt-scheme mailing list