📅  最后修改于: 2022-03-11 15:00:57.404000             🧑  作者: Mango
代码示例1
import scala.io.Source
val filename = "fileopen.scala"
for (line <- Source.fromFile(filename).getLines) {
println(line)
}