开发者

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
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜