Работа с файлами / Базовые операции

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