https://kotlinlang.org logo
u

4ntoine

08/01/2019, 7:50 PM
Hey, guys. What’s the suggested way to access (read/write) files in K/M? I thought
kotlin-io
was created for it (not for, but including it), but now i’m a bit confused. Let’s say i need only jvm, and linux/mac targets support only
d

Dominaezzz

08/01/2019, 7:52 PM
At the moment, it's just `expect`/`actual`. You could always make your own
class FileInput : kotlinx.io.core.Input
.
u

4ntoine

08/01/2019, 7:55 PM
@Dominaezzz thanks!
However it’s a bit strange there is no official support. I do understand the platforms are very different, but i believe there can be official lib with limited support of platforms..
d

Dominaezzz

08/01/2019, 7:57 PM
It's a work in progress. #kotlinx-files
u

4ntoine

08/01/2019, 8:01 PM
thanks for the link