Input / Output
Input / Output or I/O is the way in which the computer communicates with the outside world.
(write obj)
(display obj)
These functions write the external representation of obj to the output port.
write writes a form that can be read back in by Scheme; for example,
a string will be enclosed in "". display writes the external
form without any extra characters.
> (begin (write "Foo") (newline)) "Foo" #f> (begin (display "Foo") (newline)) Foo #f
(newline) writes a newline character.
(write-char char) writes the single character char.
Each of these functions can optionally have a port as an additional argument.
Contents    Page-10    Prev    Next    Page+10    Index