writeToFile
The writeToFile function is the main file writing function in Jamroom - it will procur a lock on the file, write to it, and release the lock.
bool
writeToFile
(string $file, [string $data = null], [string $mode = 'overwrite'])
-
string
$file: File to write to
-
string
$data: Data to write to file
-
string
$mode: Mode - can be "overwrite" or "append"
|