readAsText

fun readAsText(blob: Blob, encoding: String = definedExternally)(source)

The readAsText() method of the FileReader interface is used to read the contents of the specified Blob or File. When the read operation is complete, the readyState property is changed to DONE, the loadend event is triggered, and the result property contains the contents of the file as a text string.

MDN Reference