From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Henrik Enberg Newsgroups: gmane.emacs.help Subject: Re: how to read file's content using elisp? Date: Wed, 15 Sep 2004 19:30:55 +0200 Organization: Le Petomane Appreciation Society Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <87r7p3phgw.fsf@telia.com> References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1095269697 5215 80.91.229.6 (15 Sep 2004 17:34:57 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 15 Sep 2004 17:34:57 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Sep 15 19:34:45 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1C7dg5-0003UA-00 for ; Wed, 15 Sep 2004 19:34:45 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C7dli-0001FT-II for geh-help-gnu-emacs@m.gmane.org; Wed, 15 Sep 2004 13:40:34 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!bloom-beacon.mit.edu!news2.telebyte.nl!fu-berlin.de!uni-berlin.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 11 Original-X-Trace: news.uni-berlin.de HbhYmUp1EXiY7VsFD8DzjghOYXH5zI0W1c31C5RACXdvCmWDOe X-Now-Playing: Sly & The Family Stone - Sex Machine User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3.50 (gnu/linux) Cancel-Lock: sha1:5S4OAeK0NA2P3ibkET1PGfOuw4Q= Original-Xref: shelby.stanford.edu gnu.emacs.help:125334 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:20689 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:20689 Rokia 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)))