[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: can `call-with-output-file' specify access mode?
From: |
Ludovic Courtès |
Subject: |
Re: can `call-with-output-file' specify access mode? |
Date: |
Tue, 30 Oct 2012 11:27:49 +0100 |
User-agent: |
Gnus/5.130005 (Ma Gnus v0.5) Emacs/24.2 (gnu/linux) |
Hi,
Kejia柯嘉 <address@hidden> skribis:
> for example, `append' mode string. now I just use `open-file' to
> specify the append operation.
No, ‘call-with-output-file’ simply calls ‘open-output-file’, which does
(open-file str OPEN_WRITE). See ice-9/r4rs.scm.
> and, I use `display' procedure to output a big string to a file. is
> that a standard way?
Yes, ‘display’ is the standard way to write string contents to a port.
Thanks,
Ludo’.