Re: Extra Carriage Returns using write

2014-06-03 Thread Marco Leise via Digitalmars-d
Am Mon, 02 Jun 2014 14:14:11 + schrieb Dave G dgregor...@gmail.com: Hello, Why does the following add an extra CR in front of the CRLF's auto outf = new File(out.txt, w); outf.write(this\r\nis\r\na\r\ntest); outf.close; If I make the file binary auto outf = new File(out.txt, wb);

Re: Extra Carriage Returns using write

2014-06-03 Thread Steven Schveighoffer via Digitalmars-d
On Tue, 03 Jun 2014 07:34:35 -0400, Marco Leise marco.le...@gmx.de wrote: Am Mon, 02 Jun 2014 14:14:11 + schrieb Dave G dgregor...@gmail.com: Hello, Why does the following add an extra CR in front of the CRLF's auto outf = new File(out.txt, w); outf.write(this\r\nis\r\na\r\ntest);

Extra Carriage Returns using write

2014-06-02 Thread Dave G via Digitalmars-d
Hello, Why does the following add an extra CR in front of the CRLF's auto outf = new File(out.txt, w); outf.write(this\r\nis\r\na\r\ntest); outf.close; If I make the file binary auto outf = new File(out.txt, wb); it works as expected. I am using 2.065 and windows 7 Thanks, Dave G

Re: Extra Carriage Returns using write

2014-06-02 Thread Steven Schveighoffer via Digitalmars-d
On Mon, 02 Jun 2014 10:14:11 -0400, Dave G dgregor...@gmail.com wrote: Hello, Why does the following add an extra CR in front of the CRLF's auto outf = new File(out.txt, w); outf.write(this\r\nis\r\na\r\ntest); outf.close; If I make the file binary auto outf = new File(out.txt, wb); it

Re: Extra Carriage Returns using write

2014-06-02 Thread Dave G via Digitalmars-d
On Monday, 2 June 2014 at 14:27:45 UTC, Steven Schveighoffer wrote: On Mon, 02 Jun 2014 10:14:11 -0400, Dave G dgregor...@gmail.com wrote: Hello, Why does the following add an extra CR in front of the CRLF's auto outf = new File(out.txt, w); outf.write(this\r\nis\r\na\r\ntest); outf.close;

Re: Extra Carriage Returns using write

2014-06-02 Thread Steven Schveighoffer via Digitalmars-d
On Mon, 02 Jun 2014 10:36:17 -0400, Dave G dgregor...@gmail.com wrote: On Monday, 2 June 2014 at 14:27:45 UTC, Steven Schveighoffer wrote: On Mon, 02 Jun 2014 10:14:11 -0400, Dave G dgregor...@gmail.com wrote: Hello, Why does the following add an extra CR in front of the CRLF's auto outf =

Re: Extra Carriage Returns using write

2014-06-02 Thread Dave G via Digitalmars-d
You would have to ask Walter. Probably the best place is to ask on the DMC forums. See here: http://digitalmars.com/NewsGroup.html -Steve Will do. Thanks!