-
-
Save terry-heinel/1de80840a02958983f84b3194a2e0d84 to your computer and use it in GitHub Desktop.
Read file into List of lines in Scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import scala.io.Source | |
val listOfLines = Source.fromFile("filename.txt").getLines.toList |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment