Use through streams.
Abstract line splitting