Difference between revisions of "NXSL:OpenFile"
Jump to navigation
Jump to search
(Created page with "__NOTOC__ Open file on server local file system. Must be enabled by setting server configuration parameter ''NXSL.EnableFileIOFunctions''. '''Since:''' 2.2.3 == Syntax ==...") |
|||
Line 14: | Line 14: | ||
:{| | :{| | ||
|- | |- | ||
| ''name'' | | ''name'' || File name. | ||
|- | |- | ||
| ''mode'' | | ''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 == | == Return Value == | ||
[[NXSL:FILE|FILE]] object on success, NULL on failure. | [[NXSL:FILE|FILE]] object on success, NULL on failure. |
Revision as of 17:04, 6 February 2018
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.