PrintWriter has a different api than spit. PrintWriter has the ability to 
print objects and also the ability to "println" objects. When printing a 
"line", it inserts the host-specific new line characters. If you print a 
String with PrintWriter, it will be exactly the string you tell it (new 
lines will not be replaced).

spit puts a string in a file.

On Monday, November 25, 2013 5:18:17 AM UTC-6, Cedric Greevey wrote:
>
> And yet it does happen, with PrintWriter and similar. Consider the output 
> of (println) on different operating systems.
>
>
> On Mon, Nov 25, 2013 at 12:59 AM, Stefan Kamphausen 
> <ska...@gmail.com<javascript:>
> > wrote:
>
>> I agree with Alex. I would not want any magic to happen
>> to my string.
>>
>> Best,
>> Stefan
>>
>> --
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Clojure" group.
>> To post to this group, send email to clo...@googlegroups.com<javascript:>
>> Note that posts from new members are moderated - please be patient with 
>> your first post.
>> To unsubscribe from this group, send email to
>> clojure+u...@googlegroups.com <javascript:>
>> 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 clojure+u...@googlegroups.com <javascript:>.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>

-- 
-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to