\TxTextControl\ReportingCloud\StdlibFileUtils

Class FileUtils

Summary

Methods
Properties
Constants
read()
write()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

read()

read(string  $filename, bool  $base64Encode = false) : string

Read a filename from filesystem and return its binary data.

Optionally, base64 encode the returned binary data.

Parameters

string $filename
bool $base64Encode

Returns

string —

write()

write(string  $filename, string  $binaryData, bool  $base64Encoded = false) : bool

Write binary data to a filename on filesystem.

Optionally, based decode the binary data before writing.

Parameters

string $filename
string $binaryData
bool $base64Encoded

Returns

bool —