On 4/1/2019 1:27 PM, Chansey wrote:
I've found a way. Use (current-output-port out).
That will work, but it's not a good idea except as a quick hack to test something. Working in DrRacket, you may find that the output remains redirected after your program has ended (or crashed).
If you want to capture output in a file, it is best to either use OS redirection, or open/close the file explicitly in your code. There are ways to specify program parameters on the command line if necessary.
https://docs.racket-lang.org/reference/Command-Line_Parsing.html?q=command%20line%20param George -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.