help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Persistence of variables


From: Emanuel Berg
Subject: Re: Persistence of variables
Date: Wed, 21 Mar 2018 22:30:07 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux)

Eli Zaretskii wrote:

>> (defun write-string-to-file (string file)
>>   "Write STRING to FILE.
>> Create nonexistent FILE otherwise overwrite."
>>   (interactive "sstring: \nFfile: ")
>>   (with-temp-file file
>>     (insert string "\n") ))
>
> We have append-to-file, which can do this out
> of the box.

6. Use `append-to-file'.

-- 
underground experts united
http://user.it.uu.se/~embe8573


reply via email to

[Prev in Thread] Current Thread [Next in Thread]