| To: | scsh-users@scsh.net |
|---|---|
| Subject: | Re: read the whole file into a string? |
| From: | Friedrich Dominicus <just-for-news-frido@q-software-solutions.de> |
| Date: | Tue, 8 Feb 2005 08:46:28 +0100 (MET) |
| List-id: | <scsh-users.list-id.scsh.net> |
| Organization: | Q Software Solutions GmbH |
check the scsh manual, it's quite useful ;-)
You can try something along this lines:
(let* ((size-of-file (file-size "/home/frido/.zshrc"))
(fd (open-file "/home/frido/.zshrc" open/read))
(str (read-string size-of-file fd)))
(display str))
Regards
Friedrich
--
Please remove just-for-news- to reply via e-mail.
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: read the whole file into a string?, Martin Gasbichler |
|---|---|
| Next by Date: | Re: read the whole file into a string?, stktrc |
| Previous by Thread: | Re: read the whole file into a string?, Martin Gasbichler |
| Next by Thread: | Re: read the whole file into a string?, stktrc |
| Indexes: | [Date] [Thread] [Top] [All Lists] |