readFile

abstract suspend fun readFile(options: FileHandleReadFileBufferAsyncOptions? = definedExternally): Buffer(source)
abstract suspend fun readFile(): Any(source)


abstract suspend fun readFile(options: BufferEncoding): String(source)
abstract suspend fun readFile(options: FileHandleReadFileAsyncOptions? = definedExternally): Any(source)
abstract suspend fun readFile(options: BufferEncoding? = definedExternally): Any(source)

Asynchronously reads the entire contents of a file. The underlying file will not be closed automatically. The FileHandle must have been opened for reading.

Parameters

options

An object that may contain an optional flag. If a flag is not provided, it defaults to 'r'.