API16:JStream/writeFile
From Joomla! Documentation
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.
Contents |
Description
Writes a chunk of data to a file
Syntax
writeFile($filename, &$buffer)
| Parameter Name | Default Value | Description |
|---|---|---|
| $filename | ||
| &$buffer |
Defined in
libraries/joomla/filesystem/stream.php
Importing
jimport( 'joomla.filesystem.stream' );
Source Body
function writeFile($filename, &$buffer) { if($this->open($filename, 'w')) { $result = $this->write($buffer); $this->chmod(); $this->close(); return $result; } return false; }
[Edit See Also] SeeAlso:JStream/writeFile
Examples
<CodeExamplesForm />
