File.write introduces \r regardless of presence

Adam D Ruppe destructionator at gmail.com
Sat Jul 16 20:08:38 UTC 2022


On Saturday, 16 July 2022 at 19:54:08 UTC, HuskyNator wrote:
> 	File("test.txt", "w").write(a);

The default here is write in text mode, change the "w" to "wb" 
and it won't molest your line endings any more.


More information about the Digitalmars-d-learn mailing list