attempted to make a text parser for the text files