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

# writeFile

`abstract 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

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

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