3 lines
84 B
Scala
3 lines
84 B
Scala
scala.io.Source.fromPath(filename).getLines().foreach {
|
|
line => // do something
|
|
}
|