Open file at absolute location in Clojure
I have a file at C:/tasklists.xml
.
What would be a funct开发者_Go百科ion that returns the text of this file?
You'll want to use slurp
(ClojureDocs):
(slurp "C:\\tasklists.xml")
;; => returns string with contents of file
精彩评论