Method: f::read

Reads the content of a file

Info

Syntax

f::read($file, $parse=false)

Parameters

Return (mixed)

Example


$content = f::read('test.txt');
// i.e. content is hello

$content = f::read('text.txt', 'json');
// returns an array with the parsed content