Newsgroups: comp.lang.lisp
Path: cantaloupe.srv.cs.cmu.edu!rochester!cornellcs!newsstand.cit.cornell.edu!portc01.blue.aol.com!cliffs.rs.itd.umich.edu!howland.erols.net!worldnet.att.net!uunet!in3.uu.net!uucp5.uu.net!world!wware
From: wware@world.std.com (Will Ware)
Subject: Re: help... I need to put " in a file
Message-ID: <E2p9tp.nA@world.std.com>
Organization: The World Public Access UNIX, Brookline, MA
X-Newsreader: TIN [version 1.2 PL2]
References: <59c87d$ic1@news.ysu.edu>
Date: Fri, 20 Dec 1996 06:53:49 GMT
Lines: 28

David E. Duman (bb640@yfn.ysu.edu) wrote:

: I am new to lisp (common lisp), and I am writing a program
: that needs to print the single and double quote characters
: into a file.  I can't find the filter or anything like that
: to allow me to simply write such things.  

In gcl:
>(format t "'")      
'
NIL

>(format t "~a" #\")                     
"
NIL

>(format t "~c" #\")  
"
NIL

I would have hoped for a cleaner way to do the double-quote, but
looking thru CLTL2, I don't see one. As far as printing this stuff
to files, change "format t" to "format outfile" where "outfile" is
a stream created with the "open" command. Best of luck.
-- 
-------------------------------------------------------------
Will Ware <wware@world.std.com> web <http://world.std.com/~wware/>
PGP fingerprint   45A8 722C D149 10CC   F0CF 48FB 93BF 7289
