NXSL:OpenFile

From NetXMS Wiki
Jump to navigation Jump to search
This Wiki is deprecated and we are are currrently migrating remaining pages into product documentation (Admin Guide, NXSL Guide)

Open file on server local file system. Must be enabled by setting server configuration parameter NXSL.EnableFileIOFunctions.

Since: 2.2.3

Syntax

OpenFile(name, mode);

Parameters

name File name.
mode Optional access mode: "r" for read, "w" for write (will overwrite existing file), "a" for append. If omitted, file will be open for reading.

Return Value

FILE object on success, NULL on failure.