(with-input-from-file "abc" (thunk (sequence->list (in-port))))
Note that you need to “read” in the dynamic extent of with-input-from-file. Outside it, the port is closed.
--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/racket-users/20200718001905.elzyuu42gje45j7t%40topoi.pooq.com.