unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: guile-user@gnu.org
Subject: Re: ice-9 r4rs
Date: Wed, 19 Mar 2008 13:44:53 +0100	[thread overview]
Message-ID: <87od9ahohm.fsf@gnu.org> (raw)
In-Reply-To: 87abkv4h7z.fsf@moley.moleskin.org

Hi,

Sebastian Tennant <sebyte@smolny.plus.com> writes:

> (info "(guile-1.8)File Ports")
>
>    -- Scheme Procedure: open-input-file filename
>        Open FILENAME for input.  Equivalent to
>             (open-file FILENAME "r")
>
>    -- Scheme Procedure: open-output-file filename
>        Open FILENAME for output.  Equivalent to
>             (open-file FILENAME "w")
>
> These procs are found in ice-9 r4rs.  The docs make no mention of this
> fact.

With Guile 1.8:

  $ guile
  guile> (help open-input-file)
  `open-input-file' is a procedure in the (guile) module.

  Takes a string naming an existing file and returns an input port
  capable of delivering characters from the file.  If the file
  cannot be opened, an error is signalled.
  guile> (help open-output-file)
  `open-output-file' is a procedure in the (guile) module.

  Takes a string naming an output file to be created and returns an
  output port capable of writing characters to a new file by that
  name.  If the file cannot be opened, an error is signalled.  If a
  file with the given name already exists, the effect is unspecified.
  guile> (procedure? open-input-file)
  #t
  guile> (procedure? open-output-file)
  #t

Both procedures are bound by default.

Which version of Guile are you using?

Thanks,
Ludovic.





  reply	other threads:[~2008-03-19 12:44 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-19  1:48 ice-9 r4rs Sebastian Tennant
2008-03-19 12:44 ` Ludovic Courtès [this message]
2008-03-19 13:05   ` Sebastian Tennant

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/guile/

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

  git send-email \
    --in-reply-to=87od9ahohm.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=guile-user@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).