From p.singleton@keele.ac.uk  Tue Aug 17 17:34:37 1999
Received: from mail4.svr.pol.co.uk (mail4.svr.pol.co.uk [195.92.193.211])
	by swi.psy.uva.nl (8.9.3/8.9.3) with ESMTP id RAA23548
	for <prolog@swi.psy.uva.nl>; Tue, 17 Aug 1999 17:34:36 +0200 (MET DST)
Received: from modem4294967220.justice.dialup.pol.co.uk ([195.92.4.76] helo=keele.ac.uk)
	by mail4.svr.pol.co.uk with esmtp (Exim 2.12 #2)
	id 11GlFI-0006dM-00
	for prolog@swi.psy.uva.nl; Tue, 17 Aug 1999 16:33:53 +0100
Message-ID: <37B979B8.58697AF0@keele.ac.uk>
Date: Tue, 17 Aug 1999 16:03:20 +0100
From: Paul Singleton <p.singleton@keele.ac.uk>
Organization: SmartArts Computing Consultancy
X-Mailer: Mozilla 4.6 [en-gb] (WinNT; I)
X-Accept-Language: en-GB,en,en-*
MIME-Version: 1.0
To: SWI Prolog <prolog@swi.psy.uva.nl>
Subject: read/write I/O streams from foreign code?
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Can I read from, or write to, SWI-Prolog I/O streams from foreign code?

E.g. if I could use ANSI C stdio routines such as fread() on FILE*
structures associated with streams, this would be great, even if
(for my application at least), the line/character counts etc. are
not updated...

Paul Singleton


