Write To a File
writefile (Commands) |
Type | Corrade progressive command |
Command | writefile |
Parameters | group , password , path , data , action |
Description | The writefile command can be used to write to files on the filesystem that Corrade is running on. |
Permissions | system |
Last Changes | Release 9.100 - added. |
The writefile
command can be used to write to files on the filesystem that Corrade is running on.
Command | Required Parameters | Required Corrade Permissions | Example |
writefile | group , password , path , data , action | system | llInstantMessage(CORRADE,
wasKeyValueEncode(
[
"command", "writefile",
"group", wasURLEscape(GROUP),
"password", wasURLEscape(PASSWORD),
"action", "create",
"path", "test.txt",
"data", "Good day!",
"callback", wasURLEscape(URL)
]
)
);
|
Parameter | Possible Value | Meaning |
path | A local path to a file. | Write to the file specified by this path. |
action | create | Create or overwrite a file if it already exists. |
append | Append to a file if it already exists. |
data | The string to write to the file. | The data to write or append to the file. |