BAP Online Manuals : Library Reference : Library by Name : closefile
Previous: clearwindow
Next: closefiles

6.2.23. closefile

closes an open file

SYNOPSIS

INCLUDE 'iolib.h'
closefile(Handle)
closefile(input)

SYNTAX

closefile(FileHandle) (i)

ARGUMENTS

handle(FileHandle) (i) virtual or plain handle to an open file.

DESCRIPTION

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.

ERRORS

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).

LAYERS

prolog-process, client-server, object

RELATED PREDICATES

closefiles , openread , openwrite , see , tell


BAP Online Manuals : Library Reference : Library by Name : closefile
Previous: clearwindow
Next: closefiles