Creating a stream from filenames array

I know the example is not complete, but it might be clearer to pretend that filenames is an array rather than a stream already.