In Java and therefore Clojure you can find files on CLASSPATH. For example, in Java, it is customary to place things like log4j.properties at the top of your CLASSPATH (for example, in the class directory), and then you can link to the file in Clojure (or Java) code with:
(java.io.File. "log4j.properties")
Do you use and run your application with Leiningen? If so, you can create a directory at the top level and put the files there. For example, if you have a configuration file, you might have a "conf" dir with properties files:
my-lein-proj$ ls conf doc project.clj README.md src target test
Suppose you put the myproj.conf file in the conf directory and want to read it in Clojure code. Then you can simply do:
(slurp "conf/myproj.conf")
quux00
source share