readAssetFile

open fun readAssetFile(ctx: Context, assetFilePath: String): String

Reads the contents of an asset file at the specified path.

Return

String content of the file.

Parameters

ctx

Context.

assetFilePath

The path to the file, relative to the assets/ folder of the context.