Actions

API16

JStream/writeFile

From Joomla! Documentation

< API16:JStream
Revision as of 05:12, 30 March 2010 by Doxiki (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Replacement filing cabinet.png
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

[Edit Descripton]

Description:JStream/writeFile

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 />