17 lines
307 B
Kotlin
Vendored
17 lines
307 B
Kotlin
Vendored
// IS_APPLICABLE: false
|
|
// WITH_RUNTIME
|
|
import java.io.File
|
|
import java.io.IOException
|
|
|
|
fun main(args: Array<String>) {
|
|
val reader = File("hello-world.txt").bufferedReader()
|
|
<caret>try {
|
|
reader.readLine()
|
|
}
|
|
catch (e: IOException) {
|
|
|
|
}
|
|
finally {
|
|
reader.close()
|
|
}
|
|
} |