Convert lines of a stream to columns or an associative array