Skip to content

clojure.core/read-line

View this page on ClojureDocs

Type: function Added: Clojure 1.0 Examples: 4 Runnable: 0
([])

Reads the next line from stream that is the current value of in .

Examples

by gstamp on . May have evaluation errors.
by kimtg on . May have evaluation errors.
by aakoch on . May have evaluation errors.
by stathissideris on . May have evaluation errors.

Note by bfontaine

Be aware that read-line uses Java’s BufferedReader’s .readLine method that itself uses an internal buffer of either 4k or 8k. That causes (read-line) to return a truncated string if you try to read a large line.

See also


Content from the matching ClojureDocs page, with authors credited on each contribution.