Re: can `call-with-output-file' specify access mode?

2012-10-29 Thread nalaginrut
On Mon, 2012-10-29 at 15:26 -0400, Kejia柯嘉 wrote: > for example, `append' mode string. now I just use `open-file' to > specify the append operation. > Do you need "a" mode in the 'open-file' while you call 'call-with-output-file'? You may use fcntl to change it to O_APPEND in the thunk(I mean the

can `call-with-output-file' specify access mode?

2012-10-29 Thread Kejia柯嘉
for example, `append' mode string. now I just use `open-file' to specify the append operation. and, I use `display' procedure to output a big string to a file. is that a standard way? should I use string port for this purpose? -- Kejia ☵☯☲