Email or username:

Password:

Forgot your password?
Top-level
Andrew Tropin

@ramin_hal9001 @otterz Sounds very reasonable to me! Thank you for the idea, I guess I will use it in the implementation :)

1 comment
Ramin Honary

@abcdw @otterz No problem!

(define (read-all-chars-as-string in-port)
  (let ((out-port (open-string-port)))
    (let loop ()
      (if (char-ready? in-port)
          (begin
            (write-char (read-char in-port) out-port)
            (loop))
          (get-output-string out-port)))))
Go Up