SimplifiedResourceFileReader

open class SimplifiedResourceFileReader

Simple functions to read a byte array or a string out of a file in the resources.

Functions

Link copied to clipboard
open fun getAllResourcesInFolder(path: String): Array<String>
Get all files recursively in a folder from the resources.
Link copied to clipboard
open fun getByteArrayFromResources(path: String): Array<Byte>
Get the content of a file from the resources.
Link copied to clipboard
open fun getStringFromResources(path: String): String
Get the content of a file from the resources.

Properties

Link copied to clipboard
private open val instance: SimplifiedResourceFileReader