Retrieves binary or text data from the specified file
mixed
&getDataFromFile
(string $filename, string $readAttributes, [mixed $readSize = 8192])
-
string
$filename: The file path
-
string
$readAttributes: The attributes for the read operation ('r' or 'rb')
Writes the specified binary or text data to a file
void
putDataToFile
(string $fileName, mixed &$data, string $writeAttributes)
-
string
$fileName: The file path
-
mixed
&$data: The data to be written
-
string
$writeAttributes: The attributes for the write operation ('w' or 'wb')