scala get file from url as string

182

scala get file from url as string -

import scala.io.Source
val html = Source.fromURL("http://google.com")
val s = html.mkString
println(s)

Comments

Submit
0 Comments