Re: [rust-dev] Text Mode File Reading/Writing

2014-06-24 Thread Jonas Wielicki
On 24.06.2014 06:36, Gil Cottle wrote: If not, adding a flag would be useful for text file-writing/reading when running on Windows, but it could also be a source of issues for people trying to write binary/text data depending on the defaults. Any thoughts on this? For what its worth, I think

[rust-dev] Text Mode File Reading/Writing

2014-06-23 Thread Gil Cottle
Hello, I'm looking through the File API at http://doc.rust-lang.org/std/io/ and I don't see a way to open a file in binary-mode vs text-mode. It seems the default is binary mode from tests that I've done. AFAIK, this only matters on Windows since a carriage return would not be returned to the