Check out example codes for "kotlin gradle resources folder". It will help you in understanding the concepts better.

Code Example 1

val r = javaClass.classLoader.getResource("aa").readText()

Learn ReactJs, React Native from akashmittal.com