# system/io/FileOutputStream.php

## \FileOutputStream
jump to top

Package: phing\system\io

Output stream subclass for file streams.

Parent(s)
  \OutputStream

### Properties

`\PhingFile $file= ''`

The associated file.
Details

Type
  \PhingFile

### Methods

`__construct( mixed $file, boolean $append = false ) : void`

Construct a new FileOutputStream.

Parameters

Name | Type | Description
--- | --- | ---
$file | mixed |
$append | boolean | Whether to append bytes to end of file rather than beginning.

Throws

Exception | Description
--- | ---
\Exception | - if invalid argument specified.
\IOException | - if unable to open file.

`__toString( ) : string`

Returns a string representation of the attached file.

Returns

Type | Description
--- | ---
string |

`close( ) : void`

`flush( ) : void`

`write( ) : void`

Documentation was generated by DocBlox 0.17.1.