readFile

expect fun readFile(path: String): String?(source)

Reads the entire contents of a file as a UTF-8 encoded string.

Used for reading argument files containing command-line arguments.

Return

The file contents as a string, or null if the file cannot be read

Parameters

path

The path to the file to read

actual fun readFile(path: String): String?
actual fun readFile(path: String): String?