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,
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
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!