FileUtils
extends AbstractStdlib
in package
Abstract StdlibAbstract
Table of Contents
Methods
- read() : string
- Read a filename from filesystem and return its binary data.
- write() : bool
- Write binary data to a filename on filesystem.
Methods
read()
Read a filename from filesystem and return its binary data.
public
static read(string $filename[, bool $base64Encode = false ]) : string
Optionally, base64 encode the returned binary data.
Parameters
- $filename : string
- $base64Encode : bool = false
Return values
stringwrite()
Write binary data to a filename on filesystem.
public
static write(string $filename, string $binaryData[, bool $base64Encoded = false ]) : bool
Optionally, based decode the binary data before writing.
Parameters
- $filename : string
- $binaryData : string
- $base64Encoded : bool = false