read-line

clojure.core

  • (read-line)
Reads the next line from stream that is the current value of *in* .

1 Example top

  • user=> (read-line)
    line to be read      ;Type text into console
    "line to be read"
    
Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source clojure/core.clj:3346 top

(defn read-line
  "Reads the next line from stream that is the current value of *in* ."
  {:added "1.0"
   :static true}
  []
  (if (instance? clojure.lang.LineNumberingPushbackReader *in*)
    (.readLine ^clojure.lang.LineNumberingPushbackReader *in*)
    (.readLine ^java.io.BufferedReader *in*)))
Vars in clojure.core/read-line:
Used in 0 other vars

Comments top

No comments for read-line. Log in to add a comment.