Subject: Save the output of a prolog program in a file

From: Peter Mott <[email-masked]>
Date: Sun, 23 May 1999 21:22:45 +0100

There is another more 'standard' (ie procedural) way to do this. You do

open('myfile.txt', 'write', X),  print(X, 'Hello world'), close(X)

This lets you write whatever you like out to file. Reading it back in again
is maybe not
so easy as there is not anything like scanf or gets as far as I kow in SWI.
certainly not in Edinburgh prolog!

Peter 
==========================================================
Peter Mott				Tel: +44 (0)113 233 5323
School Of Computer Studies			Fax: +44 (0)113 233 5468
University of Leeds, Leeds LS2 9JT   		Office: +44 (0)113 233 5430