scala.io.Source.fromFile("input.txt").getLines().foreach { line => ... }