stdout in binary mode

bearophile bearophileHUGS at lycos.com
Wed Jul 3 17:20:17 PDT 2013


How do you open stdout in binary mode with D/Phobos?

In C++ you use something like:

setmode(fileno(stdout), O_BINARY);

(I don't even know where to find O_BINARY in core.stdc).

Bye and thank you,
bearophile


More information about the Digitalmars-d-learn mailing list