Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CLOJURE

clojure read file line by line

(use 'clojure.java.io)
(with-open [rdr (reader "/tmp/test.txt")]
  (doseq [line (line-seq rdr)]
    (println line))) ;;; do line-processing here
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #clojure #read #file #line #line
ADD COMMENT
Topic
Name
5+2 =