loadFileContent

fun File.loadFileContent(onContentLoaded: (String) -> Unit): Job

Asynchronously loads the content of the file and invokes the provided callback with the content.

Parameters

onContentLoaded

A callback function that is invoked with the file content as a string.