#lang racket (define here (current-directory)) (define txt (build-path here "some.txt")) (with-output-to-file txt #:exists 'replace (lambda () (display #<string txt)) (display #< abs rel => "Here is some text that looks at 5")