Read a character from the string

Report a typo

We have the following code:

fun main() {
    FileWriter("file.txt").use {
        it.write("Kotlin\nJava\nGo\nC++\nC#")
    }
    val file = FileReader("file.txt")
    file.use {
        // any operations
    }
    println(file.read())
}

Which character will be read in the line println(file.read())?

Select one option from the list
___

Create a free account to access the full topic