BAP Online Manuals : Library Reference : Library by Name : mkdir
Previous: messagebox
Next: new_handle

6.2.86. mkdir

creates a directory on the host servers file system

SYNOPSIS

INCLUDE 'iolib.h'
mkdir("testdir")

SYNTAX

mkdir(DirName) (i)

ARGUMENTS

string(DirName) (i) Name of the directory to be created

DESCRIPTION

Creates a new directory on the host servers file system relative to the current directory. Fails if operation was not possible.

EXAMPLE

mkdir("tmp"),
cd("tmp"),
tell("outputfile"),
write("Hello World\n"),
told,
cd(".."),
readln(_),
rmdir("tmp").

ERRORS

No runtime errors.

LAYERS

prolog-process, client-server, object

RELATED PREDICATES

rmdir , cd


BAP Online Manuals : Library Reference : Library by Name : mkdir
Previous: messagebox
Next: new_handle