Join Slack
Powered by
How do I access a file (.md for example) in a kotl...
# android
d
dewildte
05/27/2020, 3:34 AM
How do I access a file (.md for example) in a kotlin module/library? The file is located in the module.
stackoverflow
5
o
Olenyov Kirill
05/27/2020, 5:54 AM
Just put it into /assets/ folder and read it using AssetManager.
n
nino
05/27/2020, 8:06 AM
Copy code
assetManager.open(fileName).bufferedReader().use { it.readText() }
d
dewildte
05/27/2020, 1:20 PM
Thanks folks, I’ll check that out.
9
Views
Open in Slack
Previous
Next