Subject: [SWIPL] Open stream

From: Pieter Audenaert <[email-masked]>
Date: Wed, 18 Apr 2001 11:38:59 +0200 (MEST)

Hi,

Suppose I have a predicate like

foo:-
  open('bar','write',Out_Stream),
  write(Out_Stream,'foobar'),
  fail.

The file will be opened and the term will be written. But I lose my
reference to the stream to close it. Will it get closed automatically?
I don't like the idea of leaving an open stream behind...

Thanks in advance,
Pieter
----------------------------------
University of Gent, Belgium
Dept. of Pure Mathematics
http://allserv.rug.ac.be/~paudenae
[email-masked]
----------------------------------