open output files in text mode

This commit is contained in:
Matthias Felleisen 2011-02-18 13:32:28 -05:00
parent f8d761226d
commit 88e0631c71

View File

@ -124,6 +124,7 @@
(let ([result (not (file-exists? f))])
(with-output-to-file f
(lambda () (printf "~a" str))
#:mode 'text
#:exists 'replace)
f))