Write files with FileKit Core in Kotlin Multiplatform
PlatformFile
class offers multiple methods to write data to files, from simple strings to binary data and streaming operations.
write()
infix function with a ByteArray
:
writeString()
function:
sink()
method:
append
parameter:
write
infix function with another PlatformFile
or the copyTo
function:
atomicMove
function: