Re: Advice needed binary configuration files
- From: Joseph M. Newcomer <newcomer@xxxxxxxxxxxx>
- Date: Fri, 28 Oct 2005 21:27:02 -0400
Well, "too bloated" is a silly reason. Who cares how big the Registry might be? There
are many reasons you might choose to not use the Registry, but "too bloated" is remarkably
silly.
Why are text files a poor option? Text works just fine. For example, XML is text. INI
files are text. Why does text bother you?
Binary data is VERY hard to deal with. Hint: say "schema migration". What happens when
you change the information you need to store? Can you read the old files? CArchive
seduces a lot of people into thinking it has sovled their problem; in fact, their problems
are just beginning. You have to deal with versioning, and everything that follows. What
are the advantages you see in binary files? The user can't see the options, can't edit
them, etc. INI files, as obsolete as they are, are usually a better choice; XML is
currently state-of-the-art for configuration information because it is extensible,
hierarchical, and, most importantly, in text format.
joe
On Fri, 28 Oct 2005 16:40:21 GMT, "Mark F." <user@xxxxxxxxxx> wrote:
>I would prefer not to store configuration settings in the registry since
>the registry is already too bloated (IMO). Ini files, since they are
>text files also seem a poor option. The configuration data is various
>types (string, int, long etc.).
>
>What is a good approach for storing binary data (.dat) to disk so that
>the data is relatively secure, as well as optimized for fast access and
>small in size?
>
>Thanks.
Joseph M. Newcomer [MVP]
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
.
- References:
- Advice needed binary configuration files
- From: Mark F.
- Advice needed binary configuration files
- Prev by Date: Re: How toUpdateData() for a single edit box, not the entire dialog??
- Next by Date: Re: Link error invoking a method in another win32 library
- Previous by thread: Re: Advice needed binary configuration files
- Next by thread: Thread & COM interaction problem
- Index(es):
Relevant Pages
|