How about:
stream.forEachOrdered(writer::write);
On 11/19/2013 6:19 PM, Zhong Yu wrote:
> We have convenience methods to read lines from a file:
> Stream<String> Files.lines()
>
> What's Java's idiomatic way to write a Stream<String> to a file?
>
> Zhong Yu
>