Hi everyone.
I was wondering what the easiest way in Gambit is to read a string from the console.
The idea is to prompt the user for a message and let him type in a string response.
Thanks.
___________________________________________________________ Yahoo! Answers - Got a question? Someone out there knows the answer. Try it now. http://uk.answers.yahoo.com/
Afficher les réponses par date
Rouan van Dalen wrote:
Hi everyone.
I was wondering what the easiest way in Gambit is to read a string from the console.
The idea is to prompt the user for a message and let him type in a string response.
cat <<'END' > consinpexample.scm (define (rl) (read-line (console-port)))
(print "Give name please: ") (let ((name (rl))) (println "Hello, " name)) END gsi consinpexample.scm
Christian.