useResource

fun <R> KClass<*>.useResource(fileName: String, block: (InputStream) -> R): R