irus
11/20/2015, 8:00 AMtry(Stream<String> stream = Files.lines(path)) {
stream.count();
}
so i expect that this should works too:
Files.lines(path).use {}
But it didn't. Maybe because this is Auto Closable, and use extension defined only for Closable.
What do you think about it?