how to print a newline in a file in plt scheme?
racket, scheme
Solution
newline can take an optional argument of a port, on which it will emit a newline.
(define myport (open-output-file "greeting.txt"))
(display "hello world" myport)
(newline myport)
Problem
I need to have a newline every time I write to a file in plt scheme. I wonder if there is a special procedure that allows me to do this.