I've been reading KotlinDoc for the stdlib/kotlin.io.File class. But I can't see any mention of a close() method nor an autocloseable feature : so what is really happening when a File instance get garbage collected ?
java.io.File
(there is no kolin.io.File
at the moment) is not something you can close. See official docs: https://docs.oracle.com/javase/8/docs/api/java/io/File.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With