The problem was solved thanks to the program created by @Sargent, instead of having the whole text at the output making the program use a lot of memory and collapse he made it possible to have only the variables saved to a .csv file. this is the post explaining how to use it. So all credits go to him.