[plt-scheme] Help on newline when writing to a file
Hi Lian,
You want to change
(display newline p)
to:
(newline p)
Because newline optionally takes a port. (I see Noel has already
answered. Either way works.)
On Jan 9, 2008 1:57 AM, Lian DanHui <linda.lian at gmail.com> wrote:
> Thanks Noel,
>
> Yes, I've tried as the url said. But the result is that the file doesn't
> have newline written.
>
> Maybe something wrong with my environment. I am using Windows XP and latest
> PLT scheme.
>
>
>
> On 1/9/08, Noel Welsh <noelwelsh at gmail.com> wrote:
> > This recipe is fairly terse but has an example that does what you want:
> >
> > http://schemecookbook.org/Cookbook/FileWrite
> >
> > N.
> >
> > On Jan 9, 2008 9:42 AM, Lian DanHui <linda.lian at gmail.com> wrote:
> > > Hello all,
> > ...
> > > How can I write a newline to a file?
> >
>
>
> _________________________________________________
> For list-related administrative tasks:
> http://list.cs.brown.edu/mailman/listinfo/plt-scheme
>
>