std.file.append("file; \nApple");
std.file.append("file; \nBanana");
Result:
AppleBanana
Thread overview |
---|
June 09, 2021 Why std.file.append() new lind "\n" not work in Windows? | ||||
---|---|---|---|---|
| ||||
std.file.append("file; \nApple"); Result: AppleBanana |
June 09, 2021 Re: Why std.file.append() new lind "\n" not work in Windows? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Marcone | std.file.append(file; "\nApple"); Result: AppleBanana |
June 09, 2021 Re: Why std.file.append() new lind "\n" not work in Windows? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Marcone | std.file.append(file, "\nApple"); Result: AppleBanana |
June 09, 2021 Re: Why std.file.append() new lind "\n" not work in Windows? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Marcone | On Wednesday, 9 June 2021 at 21:10:58 UTC, Marcone wrote: >std.file.append("file; \nApple"); Result: AppleBanana Not all systems use the same char sequence for line breaks. In particular, Microsoft Windows uses "\r\n". You can use |
June 10, 2021 Re: Why std.file.append() new lind "\n" not work in Windows? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Marcone | On Wednesday, 9 June 2021 at 21:12:46 UTC, Marcone wrote: >Result: AppleBanana open with wordpad |