progs/app0.scala
author Christian Urban <christian dot urban at kcl dot ac dot uk>
Sun, 28 Sep 2014 22:30:25 +0100
changeset 262 ee4304bc6350
parent 254 dcd4688690ce
child 559 db5cb071644d
permissions -rw-r--r--
updated handouts

import io.Source

def get_page(url: String) : String = { 
  Source.fromURL(url).take(10000).mkString
}