Utsob Roy
Utsob Roy

Reputation: 21

How to read input from repl till the end-of-file character in clojure?

I am implementing a compiler for a contest in clojure. Where the input program should be read from STDIN till the end-of-file character. How can I do that?

Upvotes: 1

Views: 552

Answers (1)

Featalion
Featalion

Reputation: 657

Try line-seq function

(line-seq (java.io.BufferedReader. *in*))

Upvotes: 2

Related Questions