tell
BAP Online Manuals : Library
Reference : Library by Name
: tell
Previous: string
Next: telling
BAP Online Manuals : Library Reference : Library by Name : tell
Previous: string
Next: telling
Previous: string
Next: telling
6.2.129. tell
opens a file for standard output
SYNOPSIS
INCLUDE 'iolib.h' tell("data")
SYNTAX
tell(FileName) (i)
ARGUMENTS
string(FileName) (i) Name of the file to be opened
DESCRIPTION
Opens a file for writing and sets it as current output stream.
NOTE: You should not mix up the old fashioned tell(), telling
(), told predicates with the
writedevice (), closefile (), or gotowindow () predicates. Always close files with the predicates belonging to the same family!
EXAMPLE
tell(test), write("Hello World"),nl, told, file_str(test,X), write(X),nl.
ERRORS
A runtime error occurs if the file was not opened properly.
LAYERS
prolog-process, client-server, object
RELATED PREDICATES
see , seeing , seen , telling , told , write , display , put , openwrite , writedevice , closefile
BAP Online Manuals : Library Reference : Library by Name : tell
Previous: string
Next: telling