Answers for "read content line by line from file in scala"

0

scala read lines from file

import scala.io.Source

val filename = "fileopen.scala"
for (line <- Source.fromFile(filename).getLines) {
    println(line)
}
Posted by: Guest on December-24-2020

Code answers related to "read content line by line from file in scala"

Code answers related to "Scala"

Browse Popular Code Answers by Language