Roger, tryclj.com is limited in what it can do. The Clojure code you type in there is running on the web server across the network from you, not on your own local machine. That file isn't accessible there.
Also for that reason many symbols are not allowed to be used in tryclj.com expressions, slurp apparently being one of them. Click on the about link on tryclj.com and read the disclaimer. If you have some version of Java installed on your local machine, or can install it, I'd recommend trying to install Leiningen to try out Clojure on your own machine, e.g. by following the "Getting Started" instructions on clojure-doc.org here: http://clojure-doc.org/articles/tutorials/getting_started.html Andy On Feb 1, 2013, at 6:12 AM, Roger75 wrote: > Hi, > > I'm trying to use this console: > http://tryclj.com/ > > the command I wrote: > (slurp "C:\\Users\\User1\\teste\\teste.txt") > > > I get this: > java.lang.RuntimeException: Unable to resolve symbol: in this context > > On Friday, February 1, 2013 10:17:43 AM UTC-2, Roger75 wrote: > I'd like to read a txt file using clojure. How do I do that? Any examples? -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to [email protected] Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to [email protected] 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 unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
