seeing

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

6.2.116. seeing

returns the filename of the currently seen file

SYNOPSIS

INCLUDE 'iolib.h'
seeing(FileName)

SYNTAX

seeing(FileName) (o)

ARGUMENTS

string(FileName) (i) Name of the file that is open

DESCRIPTION

Returns the filename of the file that was opened with see (). If no file was opened, 'stdin' is returned.
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!

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 : seeing
Previous: see
Next: seen