Method: f::read
Reads the content of a file
Info
Syntax
f::read($file, $parse=false)
Parameters
- $file (string) The path for the file
- $parse (mixed) if set to true, parse the result with the passed method. See: "str::parse()" for more info about available methods.
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