std.file.readText() extra Line Feed character
Adam D. Ruppe via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Thu Dec 18 05:44:37 PST 2014
On Thursday, 18 December 2014 at 09:18:36 UTC, Colin wrote:
> I don't think it's my editor adding chars to the end of the
> file, as I'm using vi.
:-) vim actually does it by default. Check out ":help eol" from
inside it.
I think other vi clones do it too but I'm not sure, but I know
vim has it as documented behavior.
There's apparently a few reasons for it:
http://stackoverflow.com/questions/729692/why-should-files-end-with-a-newline
More information about the Digitalmars-d-learn
mailing list