04 July 2016

The writefile command can be used to write to files on the filesystem that Corrade is running on.

CommandRequired ParametersRequired Corrade PermissionsExample
writefilegroup, password, path, data, actionsystem
llInstantMessage(CORRADE,
     wasKeyValueEncode(
         [
             "command", "writefile",
             "group", wasURLEscape(GROUP),
             "password", wasURLEscape(PASSWORD),
             "action", "create",
             "path", "test.txt",
             "data", "Good day!",
             "callback", wasURLEscape(URL)
         ]
     )
 );
ParameterPossible ValueMeaning
pathA local path to a file.Write to the file specified by this path.
actioncreateCreate or overwrite a file if it already exists.
appendAppend to a file if it already exists.
dataThe string to write to the file.The data to write or append to the file.