System:File:write

From Aspen Documentation

Writes content to a file.

Since 1.0

Arguments

boolean write (string $content, [string $mode = 'w'])

content
Content to be written to the file.
mode
File write mode. "w" for write, "a" for append.

Returns

Returns boolean if write was successful.


Examples

Example:

$this->APP->file->useFile('/path/to/file.xml');
$this->APP->file->write('this is some content');