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

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

Re: Persistence of variables


From: Eli Zaretskii
Subject: Re: Persistence of variables
Date: Wed, 21 Mar 2018 20:23:26 +0200

> From: Emanuel Berg <moasen@zoho.com>
> Date: Wed, 21 Mar 2018 19:00:52 +0100
> 
> (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.



reply via email to

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