I am working on a big project and only part of it is done. The part which is done requires some time to execute and I'd like to store the output of my program on my computer so I don't have to re-run what's been written so far. The data I need to save is a list of long strings which contain text from pdf's that I'm extracting data from.
Try using Python Pickle. This will allow you to save python objects to a file and load them at a later date while still being fully functional. A lot of people use Pickle to save their trained neural networks.
If you are just trying to save a list of strings you can easily just:
with open("save.txt", "w") as f:
f.writelines(my_list_here)
with open("save.txt", "r") as f:
my_list = f.readlines()
Please let me know if this helps or if you have any further questions.