September 2017 Update
This commit is contained in:
parent
bba7bfd280
commit
ba8067c3b7
14570 changed files with 153136 additions and 63871 deletions
13
Task/HTTP/Kotlin/http.kotlin
Normal file
13
Task/HTTP/Kotlin/http.kotlin
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
// version 1.1.2
|
||||
|
||||
import java.net.URL
|
||||
import java.io.InputStreamReader
|
||||
import java.util.Scanner
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
val url = URL("http://www.puzzlers.org/pub/wordlists/unixdict.txt")
|
||||
val isr = InputStreamReader(url.openStream())
|
||||
val sc = Scanner(isr)
|
||||
while (sc.hasNextLine()) println(sc.nextLine())
|
||||
sc.close()
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue