Just another update
This commit is contained in:
parent
a25938f123
commit
00a190b0a6
6591 changed files with 94363 additions and 23227 deletions
|
|
@ -0,0 +1,5 @@
|
|||
(defn read-nth-line
|
||||
"Read line-number from the given text file. The first line has the number 1."
|
||||
[file line-number]
|
||||
(with-open [rdr (clojure.java.io/reader file)]
|
||||
(nth (line-seq rdr) (dec line-number))))
|
||||
Loading…
Add table
Add a link
Reference in a new issue