Home > Delphi, Programming, Tech > Where should my application store user and application data (Delphi) ?

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.

Advertisements
Categories: Delphi, Programming, Tech
  1. Frankie Espinoza
    October 20, 2010 at 12:37 PM

    hello, I just wanted to say that I really enjoyed your blog and this post. You make some very informative points. Keep up the great work!
    http://frankieespinoza.weebly.com/delphi-consulting.html

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s