system/io/FileWriter.php
\FileWriter
Package: phing\system\io
Details
Parameters
Returns
Convenience class for performing file write operations.
Unlike the Java counterpart, this class does not (yet) handle character set transformations. This will be an important function of this class with move to supporting PHP6.
- Parent(s)
- \OutputStreamWriter < \Writer
Properties

\OutputStream
$outStream= ''
inheritedInherited from:
\OutputStreamWriter::$outStream
- Type
- \OutputStream
- Inherited_from
- \OutputStreamWriter::$outStream
Methods

__construct(
mixed $file, boolean $append
=
false
)
:
voidConstruct a new FileWriter.
| Name | Type | Description |
|---|---|---|
| $file | mixed | PhingFile or string pathname. |
| $append | boolean | Append to existing file? |

getResource(
)
:
string
inherited
Gets a string representation of attached stream resource.
Inherited from: \OutputStreamWriter::getResource()| Type | Description |
|---|---|
| string | String representation of output stream |