From: Dav
Subject: Question on logging to file
Date: 
Message-ID: <3CBEF534.4F62B8A@hongkong.com>
Hi all,

I've got a question on LISP.
I wander how could I log something to a file?
What commands should I use, and how?
Is there any simple example?

Say I just want to print a list of number, '(1 2 3 4 5 6) to a file
"test.txt".
How could I achieve this?

Thanks all in advance!

Best Regards,

From: Kent M Pitman
Subject: Re: Question on logging to file
Date: 
Message-ID: <sfwzo01x8e4.fsf@shell01.TheWorld.com>
Dav <·········@hongkong.com> writes:

> Hi all,
> 
> I've got a question on LISP.
> I wander how could I log something to a file?
> What commands should I use, and how?
> Is there any simple example?
> 
> Say I just want to print a list of number, '(1 2 3 4 5 6) to a file
> "test.txt".
> How could I achieve this?
> 
> Thanks all in advance!
> 
> Best Regards,

In the symbol index of CLHS, look up PRINT and WITH-OPEN-FILE.

CLHS is at:

http://www.xanalys.com/software_tools/reference/HyperSpec/Front/index.htm
From: Dav
Subject: Re: Question on logging to file
Date: 
Message-ID: <3CBF0252.F0D27439@hongkong.com>
Kent M Pitman wrote:
> 
> Dav <·········@hongkong.com> writes:
> 
> > Hi all,
> >
> > I've got a question on LISP.
> > I wander how could I log something to a file?
> > What commands should I use, and how?
> > Is there any simple example?
> >
> > Say I just want to print a list of number, '(1 2 3 4 5 6) to a file
> > "test.txt".
> > How could I achieve this?
> >
> > Thanks all in advance!
> >
> > Best Regards,
> 
> In the symbol index of CLHS, look up PRINT and WITH-OPEN-FILE.
> 
> CLHS is at:
> 
> http://www.xanalys.com/software_tools/reference/HyperSpec/Front/index.htm

Oh yeah... I've got the CLHS site before, but I just couldn't figured
out where to start.

This is the one I found:
http://www.lisp.org/HyperSpec/FrontMatter/index.html

I gonna look at PRINT and WITH-OPEN-FILE now. ;-)

Thanks Kent!