vertx / io.vertx.rxjava.core.file / FileSystem / writeFile

# writeFile

`open fun writeFile(path: String, data: Buffer, handler: Handler<AsyncResult<Void>>): FileSystem`

Creates the file, and writes the specified `Buffer data` to the file represented by the path `path`, asynchronously.

### Parameters

`path` - path to the file

`data` -

`handler` - the handler that will be called on completion

Return
a reference to this, so the API can be used fluently