see
BAP Online Manuals : Library
Reference : Library by Name
: see
Previous: rmdir
Next: seeing
BAP Online Manuals : Library Reference : Library by Name : see
Previous: rmdir
Next: seeing
Previous: rmdir
Next: seeing
6.2.115. see
opens a file for standard input
SYNOPSIS
INCLUDE 'iolib.h' see("data")
SYNTAX
see(FileName) (i)
ARGUMENTS
string(FileName) (i) Name of the file to be opened
DESCRIPTION
Opens a file for reading and sets it as current input stream.
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
A runtime error occurs if the file was not opened properly.
LAYERS
prolog-process, client-server, object
RELATED PREDICATES
seeing , seen , tell , telling , told , read , readln , readchar , get , openread , readdevice
BAP Online Manuals : Library Reference : Library by Name : see
Previous: rmdir
Next: seeing