getResourceAsText

fun getResourceAsText(resourcePath: String): String?

Reads a resource file from the classpath and returns its content as a string.