Bug: Newlines become Carriage Returns on Mac
On Mac this outputs a file with "test1^Mtest2^M"
f = new File([path]);
it uses carriage returns which means things like tail -f [path] won't work. Workaround is to use the "BINARY" file encoding