Created
May 23, 2013 02:48
-
-
Save spencerdeinum/5632477 to your computer and use it in GitHub Desktop.
Source.fromURL
This file contains hidden or 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
object Main extends App { | |
val stream = Source.fromURL("http://www.yahoo.ca") | |
val lines = stream.getLines() | |
stream.getLines().foreach(println) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment