On 12/19/2014 02:22 AM, Colin wrote:
On Thursday, 18 December 2014 at 22:29:30 UTC, Ali Çehreli wrote:
happy with Emacs :p
Does emacs do this aswell? :)
Emacs can and does do everything: :)
http://www.gnu.org/software/emacs/manual/html_node/emacs/Customize-Save.html
Ali
On Thursday, 18 December 2014 at 22:29:30 UTC, Ali Çehreli wrote:
On 12/18/2014 02:51 AM, Colin wrote:
vi, and it does indeed have a '\n' at the end of file.
Ah, I see. That's a little annoying.
It looks like there are ways of dealing with it:
On Fri, 19 Dec 2014 10:22:01 +
Colin via Digitalmars-d-learn digitalmars-d-learn@puremagic.com wrote:
On Thursday, 18 December 2014 at 22:29:30 UTC, Ali Çehreli wrote:
On 12/18/2014 02:51 AM, Colin wrote:
vi, and it does indeed have a '\n' at the end of file.
Ah, I see. That's
On Fri, 19 Dec 2014 10:22:01 +
Colin via Digitalmars-d-learn digitalmars-d-learn@puremagic.com wrote:
On Thursday, 18 December 2014 at 22:29:30 UTC, Ali Çehreli wrote:
On 12/18/2014 02:51 AM, Colin wrote:
vi, and it does indeed have a '\n' at the end of file.
Ah, I see. That's
Why does std.file.readText() append a Line Feed char onto the end
of the string?
I have a file with the following contents in it:
Name = Int
Other=Float
One More = String(Random;)
I then have the code:
void main(string[] args){
const text = Name = Int
On Thu, 18 Dec 2014 09:18:35 +
Colin via Digitalmars-d-learn digitalmars-d-learn@puremagic.com wrote:
Why does std.file.readText() append a Line Feed char onto the end
of the string?
I have a file with the following contents in it:
Name = Int
Other=Float
One More =
On Thursday, 18 December 2014 at 09:25:47 UTC, ketmar via
Digitalmars-d-learn wrote:
On Thu, 18 Dec 2014 09:18:35 +
Colin via Digitalmars-d-learn
digitalmars-d-learn@puremagic.com wrote:
Why does std.file.readText() append a Line Feed char onto the
end of the string?
I have a file with
On Thursday, 18 December 2014 at 10:16:38 UTC, Colin wrote:
On Thursday, 18 December 2014 at 09:25:47 UTC, ketmar via
Digitalmars-d-learn wrote:
On Thu, 18 Dec 2014 09:18:35 +
Colin via Digitalmars-d-learn
digitalmars-d-learn@puremagic.com wrote:
Why does std.file.readText() append a
On Thursday, 18 December 2014 at 10:43:32 UTC, yazd wrote:
On Thursday, 18 December 2014 at 10:16:38 UTC, Colin wrote:
On Thursday, 18 December 2014 at 09:25:47 UTC, ketmar via
Digitalmars-d-learn wrote:
On Thu, 18 Dec 2014 09:18:35 +
Colin via Digitalmars-d-learn
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
On 12/18/2014 02:51 AM, Colin wrote:
vi, and it does indeed have a '\n' at the end of file.
Ah, I see. That's a little annoying.
It looks like there are ways of dealing with it:
http://stackoverflow.com/questions/1050640/vim-disable-automatic-newline-at-end-of-file
Ali
happy with Emacs
11 matches
Mail list logo