I would like to read those words line by line: http://www.puzzlers.org/pub/wordlists/unixdict.txt
I tried to get a Stream:
Stream<String> stream = Files.lines(Paths.get("http://www.puzzlers.org/pub/wordlists/unixdict.txt"));
stream.forEach((word) -> System.out.println(word));
//Close the stream and it's underlying file as well
stream.close();
but as I suspected it works only for files. Is there similar methods for URLs?