Correct stream file reading.