implemented textfilereader class