Re: Why std.file.append() new lind "\n" not work in Windows?

2021-06-09 Thread nov via Digitalmars-d-learn
On Wednesday, 9 June 2021 at 21:12:46 UTC, Marcone wrote: Result: AppleBanana open with wordpad or open with notepad++ or display with "type filename" command

Re: Why std.file.append() new lind "\n" not work in Windows?

2021-06-09 Thread tsbockman via Digitalmars-d-learn
On Wednesday, 9 June 2021 at 21:10:58 UTC, Marcone wrote: std.file.append("file; \nApple"); std.file.append("file; \nBanana"); Result: AppleBanana Not all systems use the same char sequence for line breaks. In particular, Microsoft Windows uses "\r\n". You can use

Re: Why std.file.append() new lind "\n" not work in Windows?

2021-06-09 Thread Marcone via Digitalmars-d-learn
std.file.append(file, "\nApple"); std.file.append(file, "\nBanana"); Result: AppleBanana

Why std.file.append() new lind "\n" not work in Windows?

2021-06-09 Thread Marcone via Digitalmars-d-learn
std.file.append("file; \nApple"); std.file.append("file; \nBanana"); Result: AppleBanana

Re: Why std.file.append() new lind "\n" not work in Windows?

2021-06-09 Thread Marcone via Digitalmars-d-learn
std.file.append(file; "\nApple"); std.file.append(file; "\nBanana"); Result: AppleBanana