Added file reading from a reader.