cpp file for the textReader