Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Scheme/Racket output-file

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!

Name: Anonymous 2011-03-13 9:36

>>7
Portable between inexistent implementations, yes.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List