Scala Leia linhas do arquivo

import scala.io.Source

val filename = "fileopen.scala"
for (line <- Source.fromFile(filename).getLines) {
    println(line)
}
Mysterious Manx