Bug: Newlines become Carriage Returns on Mac
On Mac this outputs a file with "test1^Mtest2^M"
f = new File([path]);
f.open("a");
f.writeln("test1");
f.writeln("test2");
f.close();
it uses carriage returns which means things like tail -f [path] won't work. Workaround is to use the "BINARY" file encoding
1
vote
![](https://secure.gravatar.com/avatar/858bde16fcbb5795f8e7c1b8a9c54a7a?size=40&default=https%3A%2F%2Fassets.uvcdn.com%2Fpkg%2Fadmin%2Ficons%2Fuser_70-6bcf9e08938533adb9bac95c3e487cb2a6d4a32f890ca6fdc82e3072e0ea0368.png)