处理文件 / 基本操作

import java.io.File
val file = File("file.txt")
val exists = file.exists()
println("exists is $exists")