Hello, I currently want to write a program that includes writing out stuff written in the buffer. But I cant seem to write out strings stored in text% properly. Example:
(define txt (new text%)) (send txt insert "hello world" 0 11) (send txt find-first-snip) creates "hello world" on the command line. But neither (write-to-file (send txt find-first-snip) path) (define fdatei (open-output-file path)) (write (send txt find-first-snip) fdatei) (send txt write-to-file out-stream 0 'eof) actually writes the string, but does only write name of the struct in the file. So how exactly do I get to the plain String-text in text% to be able to write it in a file? best regards, Loone -- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.

