Yes, spit is in clojure.contrib.duck-streams.

Java doesn't support "~", but if you want the home directory you can
get it with
(System/getProperty "user.home")
-Stuart

On Nov 16, 9:18 am, Stuart Halloway <[EMAIL PROTECTED]> wrote:
> Hi Ethan
>
> spit is in Clojure-contrib. I wouldn't expect Clojure to support OS-
> specific idioms like ~, because Java doesn't.
>
> Stuart
>
> > Has the inverse of slurp been added to the core libraries yet?  Like  
> > this:
>
> > (spit "Some text" "/foo.txt")
>
> > to make a file called 'foo.txt' containing "Some text".
>
> > By the way, it appears that Clojure (or Java) doesn't recognize ~, as
> > in (slurp "~/foo.txt").  True?
>
> > -~----------~----~----~----~------~----~------~--~---
--~--~---------~--~----~------------~-------~--~----~
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
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to