Open file in absolute location in Clojure

I have a file in C:/tasklists.xml .

What will be the function that returns the text of this file?

+4
source share
1 answer

Do you want to use slurp (ClojureDocs) :

 (slurp "C:\\tasklists.xml") ;; => returns string with contents of file 
+8
source

Source: https://habr.com/ru/post/1368944/


All Articles