api to read the file. it requires the full path of the file to be read but I don’t know how to provide the full path
Copy code
fun readCsvFile(filePath: String){
val path = "words.txt".toPath() // where should I put this file?
val csvContent = FileSystem.SYSTEM.read(path) {
readUtf8()
}
}
p
Pablichjenkov
04/27/2023, 11:24 PM
Perhaps asking in #squarelibraries might help
l
Loe
04/27/2023, 11:32 PM
Tnx, I posted my question on that channel as well
l
Landry Norris
04/28/2023, 1:52 AM
I don't think assets are actually in the file system on Android. If I remember correctly, assets get zipped and included in the apk, and you reference it as a Stream of some sort.