readAsString

abstract fun readAsString(path: String): String

Reads the contents of the file at the given path into a String and returns it.

Return

The String contents of the target file.

Parameters

path

Relative path to the file that will be read.

Throws

If the file at path does not exist.