2023-09-16 17:28:03 -07:00
|
|
|
import kotlin.io.path.createTempFile
|
|
|
|
|
import kotlin.io.path.deleteExisting
|
2023-07-01 11:58:00 -04:00
|
|
|
|
2023-09-16 17:28:03 -07:00
|
|
|
fun main() {
|
|
|
|
|
val tempFilePath = createTempFile("example", ".tmp")
|
|
|
|
|
println("Temporary file created: $tempFilePath")
|
|
|
|
|
tempFilePath.deleteExisting()
|
2023-07-01 11:58:00 -04:00
|
|
|
}
|