stdio performance in tango, stdlib, and perl
torhu
fake at address.dude
Thu Mar 22 01:36:46 PDT 2007
Roberto Mariottini wrote:
<snip>
> The portable way to write a newline in C++ is to use the 'endl'
> modifier.
> Your program is not portable, on Windows it will generate Unix text files.
>
> Ciao
Unless a file is opened in binary mode, '\n' will be translated into
'\r\n' on Windows. And stdin, stdout, stderr is by default in ascii
(not binary) mode.
More information about the Digitalmars-d
mailing list