How do we get the path to the resources directory in a lein app project?
I have one way that I've seen, this
(clojure.java.io/resource "file.txt")
The doc says "Returns the URL for a named resource" but I'm confused by this...not sure it is something I'd want to use. Suppose this case:
/project.clj
/src
/src/core.clj
/resources/A.txt
/resources/B.txt
Say file A.txt contains a sentence in lower case letters. And say that I want to read it and then write the same sentence to B.txt in upper case. How do I even tell the project to write to /resources/whatever.txt
?