readFile

abstract fun readFile(filePath: String): Result<ByteArray>

Reads the file at the specified filePath and returns the content as a Result object.

Return

A Result object that contains the content of the file as a ByteArray if the file is read successfully.

Parameters

filePath

The path to the file to be read.