vertx / io.vertx.core.file / FileSystem / readFile

# readFile

`abstract fun readFile(path: String, handler: Handler<AsyncResult<Buffer>>): FileSystem`

Reads the entire file as represented by the path `path` as a Buffer, asynchronously.

Do not use this method to read very large files or you risk running out of available RAM.

### 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