Drake Gebhart
02/25/2025, 1:57 AMval path = "applog.txt".toPath()
FileSystem.SYSTEM.appendingSink(path).buffer().use { sink ->
sink.writeUtf8(message)
}
I get an error on both iOS and Android
Caused by: java.io.FileNotFoundException: applog.txt: open failed: EROFS (Read-only file system)
at libcore.io.IoBridge.open(IoBridge.java:492)
at java.io.FileOutputStream.<init>(FileOutputStream.java:236)
at okio.Okio__JvmOkioKt.sink(JvmOkio.kt:173)
Looking around it looks like Okio w/ KMP works in common now but I'm not seeing many examples?jw
02/25/2025, 1:58 AM/
.jw
02/25/2025, 1:59 AMDrake Gebhart
02/25/2025, 2:40 AMjw
02/25/2025, 2:40 AMDrake Gebhart
02/25/2025, 2:55 AMjw
02/25/2025, 2:56 AMDrake Gebhart
02/25/2025, 2:58 AM