From starred@tiscalinet.it Mon Aug  6 15:16:38 2001
Received: from smtp2.libero.it (smtp2.libero.it [193.70.192.52])
	by swi.psy.uva.nl (8.11.2/8.11.2) with ESMTP id f76DGcb00333
	for <prolog@swi.psy.uva.nl>; Mon, 6 Aug 2001 15:16:38 +0200 (MET DST)
Received: from tiscalinet.it (151.24.143.215) by smtp2.libero.it (5.5.031)
        id 3B3A18720080ED91 for prolog@swi.psy.uva.nl; Mon, 6 Aug 2001 15:16:39 +0200
Message-ID: <3B6E98B8.4A8B31A8@tiscalinet.it>
Date: Mon, 06 Aug 2001 15:16:40 +0200
From: Armando Stellato <starred@tiscalinet.it>
X-Mailer: Mozilla 4.7 [en] (WinNT; I)
X-Accept-Language: en
MIME-Version: 1.0
To: SWI Mailing List <prolog@swi.psy.uva.nl>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Subject: [SWIPL] Problems with streams

Hi,
Read this(all done from the console):

open(mario2,write,A,[alias(stream_write)]).
write(stream_write,pippo).
open(mario2,read,A,[alias(stream_read)]).
read(stream_read,Char).

Well, it should give me: Char=pippo
but it gives me end of file error, why?
I've tried all the possible combinations, all kind of writes, closing
the write_stream (so to be sure to have debuffered it) and then opening
the read_stream and one thousand other things....
why the hell doesn't it go in the right way????

Armando




