Name: Anonymous 2011-03-12 20:17
hey, I have a question about the scheme programming language R5RS(now called racket or something)
All I want to do is open an output file. This seems easy. This is what I'm doing:
(define out_file (open-output-file out_file_n))
Where out_file_n is the name of the output file as a string. This works, however if the output file already exists, it throws an error. How do I open an output file, and if it already exists, a new one replaces it?
Thanks!
All I want to do is open an output file. This seems easy. This is what I'm doing:
(define out_file (open-output-file out_file_n))
Where out_file_n is the name of the output file as a string. This works, however if the output file already exists, it throws an error. How do I open an output file, and if it already exists, a new one replaces it?
Thanks!