IronScheme supports R6RS :)
file-options not available in with-output-to-file , so you need to use open-file-output-port .
Example (incorrect):
(let ((p (open-file-output-port "robot-log.txt" (file-options no-create)))) (fprintf p "~a\r\n" whatToWrite) (close-port p))
Update:
The above function is not . You seem to have found a bug in IronScheme. It is unclear though from R6RS that file-options should behave like append, if any. Once again I will research and provide feedback.
Update 2:
I talked to one of the R6RS editors and it has no portable way to specify "add mode". Of course, we have it available in .NET, so I will fix the problem by adding another file-options to add. I will also think about adding some overloads for the "plain io" routines to handle this, since using the above code is pretty tedious. Thank you for identifying the problem!
Update 3:
I reviewed this question. From TFS rev 114008, append added to file-options . In addition, with-output-to-file , call-with-output-file and open-output-file have an additional optional parameter specifying 'append-mode'. You can get the latest build from http://build.ironscheme.net/ .
Example:
(with-output-to-file "test.txt" (lambda () (displayln "world"))
source share