I've read about this before but not sure what to search for.

How do I save a string variable to the application's memory?

Basically, instead of creating a file called lastopen.ini I want to save the commondialog.filename string to the app memory so that the next time it opens it the commondialog remembers where it was last at.