Skip to content

Instantly share code, notes, and snippets.

@jaychoo
Created October 7, 2011 19:04
Show Gist options
  • Save jaychoo/1271098 to your computer and use it in GitHub Desktop.
Save jaychoo/1271098 to your computer and use it in GitHub Desktop.
Scala - read content from the file
scala.io.Source.fromFile("file.txt").getLines.reduceLeft(_+_)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment