https://kotlinlang.org logo
u

4ntoine

09/04/2020, 10:48 AM
Hi, all. Being practical my question is “What can be used for files IO in Kotlin Multiplatform at the moment” (let’s say i want to open a text file and get all the lines on both iOS and Android)? I came up with some `expect`ed classes and home-brew 
actual
 impls using 
fopen(), ...
 in the 
native
 sourceSet. Any existing/proper way of doing that? PS. https://github.com/orangy/kotlinx-files seems to be discontinued
g

Glen

09/04/2020, 12:46 PM
Hello, @4ntoine. You could probably consult this library :https://github.com/korlibs/korio
u

4ntoine

09/04/2020, 12:47 PM
@Glen Thank you, i will take a look
g

Glen

09/04/2020, 12:47 PM
👍
@4ntoine, it seems the previous library I referenced does not have support for iOS. Here is another library :https://github.com/icerockdev/moko-resources
d

Darran

09/04/2020, 2:02 PM
interesting - i would have thought there would be a kotlin mp implementation for accessing files on android, ios, desktop already