progs/app0.scala
author Christian Urban <christian dot urban at kcl dot ac dot uk>
Sat, 29 Oct 2016 21:45:44 +0100
changeset 467 b5ec11e89768
parent 254 dcd4688690ce
child 559 db5cb071644d
permissions -rw-r--r--
fixed bug

import io.Source

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