closes all open files
INCLUDE 'iolib.h' closefiles
closefile
(none)
Closes all files that have been either opened by
openread
or
openwrite
as
well as all windows created. The contents of all output files are flushed first.
Usually you should close all files explicitly, but this predicate is useful in case you encountered a
fatal problem and wish to leave you program clean. Note that if you do not close open output
files, you may lose data as all transactions are buffered.
No runtime errors. Always succeeds.
prolog-process, client-server, object
closefile , openread , openwrite , see , tell , makewindow