Added read method to text reader.