got the path to be generated from the text file