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

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

Re: how to read file's content using elisp?


From: Henrik Enberg
Subject: Re: how to read file's content using elisp?
Date: Wed, 15 Sep 2004 19:30:55 +0200
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3.50 (gnu/linux)

Rokia <Rokiadd@yahoo.com.cn.discuss> writes:

> what I want to do is reading a file's content into a string
> variable. like this.
>
> (setq dddstring (foo-read-file "dd.txt"))
> (prin1 dddstring)

(setq dddstring (with-temp-buffer
                  (insert-file-contents "dd.txt")
                  (buffer-string)))

reply via email to

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