progs/app0.scala
author Christian Urban <christian dot urban at kcl dot ac dot uk>
Sat, 22 Oct 2016 18:29:54 +0100
changeset 460 6a60e5ddd548
parent 254 dcd4688690ce
child 559 db5cb071644d
permissions -rw-r--r--
updated

import io.Source

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