make-string-input-stream
make-string-input-stream string &optional start end → string-stream
string—a string.
start, end—bounding index designators of string. The defaults for start and end are 0 and nil, respectively.
string-stream—an input string stream.
21.2.0 8Returns an input string stream. This stream will supply, in order, the characters in the substring of string bounded by start and end. After the last character has been supplied, the string stream will then be at end of file.
Implied by bounded. -kmp 14-Feb-92 \param{Start} marks the beginning position of the substring. \param{End} marks the position following the last element of the substring.
(let ((string-stream (make-string-input-stream "1 one ")))
(list (read string-stream nil nil)
(read string-stream nil nil)
(read string-stream nil nil)))
→ (1 ONE NIL)
(read (make-string-input-stream "prefixtargetsuffix" 6 12)) → TARGET
None.
None.
None.
None.