Where should my application store user and application data (Delphi) ?
The excellent About.com Delphi blog run by Zarko Gajic has an great article on how, and where, to store user and application data when writing an application. Remember, *never* hard-code your path!
When in the need of storing some content related to your Delphi application on the user’s hard disk, you should take care of the support for state separation of user data, user settings, and computer settings.
For example, The "Application Data" folder in Windows should be used to store application specific documents such as INI files, application state, temp files or similar.
You should never use hard-coded paths to specific locations, such as "c:\Program Files", as this may not work on other versions of Windows because the location of folders and directories can change with different versions of Windows.