BAP Online Manuals : Library Reference : Library by Name : deletefile
Previous: dde_terminate
Next: display

6.2.41. deletefile

deletes the specified file from the host servers file system

SYNOPSIS

INCLUDE 'iolib.h'
deletefile(FileName)

SYNTAX

 deletefile(FileName) (i)

ARGUMENTS

string(FileName) Name of the file to be deleted

DESCRIPTION

Causes the host server to delete the specified file from its file system. Succeeds if the file was successfully deleted, fails otherwise.

EXAMPLE

tell("test"),
write("Hello World"),nl,
told,
see("test"),
read(X),
seen,
deletefile("test"),
write(X),nl.

ERRORS

No runtime errors.

LAYERS

prolog-process, client-server, object

RELATED PREDICATES

openwrite , writedevice , tell , told


BAP Online Manuals : Library Reference : Library by Name : deletefile
Previous: dde_terminate
Next: display