System:File:read

From Aspen Documentation

Opens file and returns contents.

Since 1.0

Arguments

string read ([string $file = false])

file
Path to file. If left false, it will use any file path passed to useFile function.

Returns

Returns contents of the file or false if the file doesn't exist.


Examples

If performing additional file functions, you must simply call this function after using the initial useFile

$this->APP->file->useFile('/path/to/file.xml');
$this->APP->file->read();

Otherwise:

$this->APP->file->read('/path/to/file.xml');