fun Resources.rawResourceAsString(@RawRes resId: Int): String
Reads and returns a raw resource as a string.
Intended use is for smaller text files, since buffering is done on the calling thread.
resId
- Raw resource identifier.
Return
Contents of raw resource as a string.