system/io/FileWriter.php
Convenience class for performing file write operations.
- Package
- phing.system.io
\FileWriter
Package: phing\system\io
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
Details
- Type
- \OutputStream
- Inherited_from
- \OutputStreamWriter::$$outStream
Methods


__construct(
mixed $file, boolean $append
=
false
)
:
void
Construct a new FileWriter.
Parameters
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()
Returns
Type | Description |
---|---|
string | String representation of output stream |