fileWithCallbacks

fun fileWithCallbacks(successCallback: FileCallback, errorCallback: ErrorCallback = definedExternally)(source)

The FileSystemFileEntry interface's method file() returns a File object which can be used to read data from the file represented by the directory entry.

MDN Reference