KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Assume there is two files inside my clojure project, one clj and the other is txt. Is there a way to know the path (as a string) of the txt file from the clj file? There is: (System/getProperty "user.dir") or (-> (java.io.File. ".") .getAbsolutePath) But this gives where the current directory. The one that includes the clj file, the one the code is written in. But how to know the path of the txt file? The purpose is to write into this txt file from the clj file. Thank you.
Tags (comma-separated)
Save Edits
Cancel