What is a simple way to output text to file in a R5RS compliant version of Scheme? I use MIT's MEEP (which uses Scheme for scripting) and I want to output text to file. I have found the following other answers on Stackoverflow:
How to append to a file using Scheme
Append string to existing textfile [sic] in IronScheme
But, they weren't exactly what I was looking for.
The answers by Charlie Martin, Ben Rudgers, and Vijay Mathew were very helpful, but I would like to give an answer which is simple and easy to understand for new Schemers, like myself :)
And, for any lingering questions about the whole "\r\n" thing, please see the following answer:
What is the difference between \r and \n?
Cheers!