Scala Get File From Url As String

[Solved] Scala Get File From Url As String | Scala - Code Explorer | yomemimo.com
Question : scala get file from url as string

Answered by : mysterious-manx-zj6ufz4d16q8

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

Source : https://alvinalexander.com/scala/scala-how-to-download-url-contents-to-string-file/ | Last Update : Sat, 02 Jan 21

Answers related to scala get file from url as string

Code Explorer Popular Question For Scala