unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: stephan.zimmer@googlemail.com
To: help-gnu-emacs@gnu.org
Subject: Is there an ELisp function for reading file contents in a string?
Date: Wed, 6 Feb 2008 05:11:55 -0800 (PST)	[thread overview]
Message-ID: <2cc58ccd-001d-42bc-ad4f-0824204ffc5a@i12g2000prf.googlegroups.com> (raw)

Hi,

does anybody know whether there is a function in elisp that just reads
the contents of a text file into a string?

So far, I haven't found anything that could be related to that. The
only, yet not very charming, possibility that I currently see is to
use the "insert-file" function in combination with the "buffer-
(sub)string" function and later erase the inserted file contents
again.

Thanks very much,
  Stephan


             reply	other threads:[~2008-02-06 13:11 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-06 13:11 stephan.zimmer [this message]
2008-02-06 15:13 ` Is there an ELisp function for reading file contents in a string? Juanma Barranquero
     [not found] ` <mailman.7038.1202310789.18990.help-gnu-emacs@gnu.org>
2008-02-06 16:07   ` stephan.zimmer
2008-02-06 18:22   ` Ted Zlatanov
2008-02-06 22:52     ` Juanma Barranquero

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2cc58ccd-001d-42bc-ad4f-0824204ffc5a@i12g2000prf.googlegroups.com \
    --to=stephan.zimmer@googlemail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).