If you want read a file from the classpath as a string, you can use
clojure.java.io/resource;

(require 'clojure.java.io)
(slurp (clojure.java.io/resource "META-INF/MANIFEST.MF"))


On Sun, Jan 20, 2013 at 11:34 PM, Josh Kamau <joshnet2...@gmail.com> wrote:

> Hi ;
>
> I figured it it out... (load "/myfile")    ;loads my file relative to
> classpath
>
>
> thanks
> Josh
>
>
> On Mon, Jan 21, 2013 at 2:14 AM, Josh Kamau <joshnet2...@gmail.com> wrote:
>
>> Hi;
>>
>> I have a clojure lein project. I have a directory called resources which
>> i believe is the classpath root directory..
>>
>> I just want to (slarp "resources/myfile.txt") , This doesnt work. How do
>> i specify the path properly such that i will always work even after i
>> uberjar or uberwar ?
>>
>> thanks
>> josh
>>
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@googlegroups.com
> Note that posts from new members are moderated - please be patient with
> your first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to