I am writing a program where basically you type information, and the information is saved in a text file. The program has to know where to save that specific text file. I have added a menu button that directs you to an area of the program where you can tell the program where you would like the program to save the file. The problem is that I would like to have to tell the program where I would like to save the file once, and only once. So after I close the program I could open it back up, and it would remember where I would like to save the file.
This is not my exact code, just an example:
flub = raw_input("Where would you like to save your file?) SaveDirectory = flub
In this case,
SaveDirectory is where I want to save the file. I would like the program to ask me where I would like to save the program once, and only once.