(spit "C:\\foo.txt" "test1\n") (spit "C:\\foo.txt" "test2\n" :append true)
open file in notepad => "test1test2" (spit "C:\\foo.txt" "test1\r\n") (spit "C:\\foo.txt" "test2\r\n" :append true) open file in notepad => "test1 test2" So a newline in the string passed to spit seems to be emitted as 0x10, regardless of the platform, and you have to use \r\n in the string to get a Windoze newline. Since (AIUI) "spit" is designed to emit text files (who writes binary files via a Writer?), shouldn't each "\n" in the input be getting coerced to (System/getProperty "line.separator") somewhere along the way? -- -- 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.