Subject: [SWIPL] Problems with streams

From: Armando Stellato <[email-masked]>
Date: Mon, 06 Aug 2001 15:16:40 +0200

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