Reading and Writing Characters
(write-string "Hello world" stream)
;; Writes string but no newline
(read-char stream)
=> #\H
;; Reads a single character
(write-char #\H stream)
;; Writes a single character
(terpri stream)
;; Writes a newline
Previous slide
Next slide
Back to first slide
View graphic version