BAP Online Manuals : Library Reference : Library by Name : seen
Previous: seeing
Next: send_msg

6.2.117. seen

closes a file opened with see

SYNOPSIS

INCLUDE 'iolib.h'
seen

SYNTAX

seen

ARGUMENTS

(none)

DESCRIPTION

Closes a file that was opened by see (). Sets the current input stream back to stdin.
NOTE: You should not mix up the old fashioned see(), seeing (), seen predicates with the readdevice (), closefile (), or gotowindow () predicates. Always close files with the predicates belonging to the same family!

EXAMPLE

file_str(test,"Hello World"),
see(test),
readln(X),
seen,
write(X),nl.

ERRORS

No runtime errors.

LAYERS

prolog-process, client-server, object

RELATED PREDICATES

see , seeing , tell , telling , told , read , readln , readchar , get , openread , readdevice , closefile


BAP Online Manuals : Library Reference : Library by Name : seen
Previous: seeing
Next: send_msg