closes an open file
INCLUDE 'iolib.h' closefile(Handle) closefile(input)
handle(FileHandle) (i) virtual or plain handle to an open file.
Closefile closes a file that has been either been opened by openread or openwrite . If FileHandle relates to an output file, it is flushed first.
fails if Directory is bound to something other than a string, or if the current directory was not set for some reason (e.g. Directory does not exist).
prolog-process, client-server, object
closefiles , openread , openwrite , see , tell