Appropriate replacement for ini-files... xml?

A

Andrew

In the past I've used ini type files extensively for storing data that
I want access from multiple workbooks. For example, in my current
project I want to store cost coefficients for various types of
equipment:

[Compressor]
a = 1
b = 1.34
c = 10.2

[Pump]
a = 2
b = 1.5
c = 9.0

The _PrivateProfileString API functions have been easy to use (and
don't require a lot of code) for reading and writing to the ini file.
But there is always the risk that they will no longer be supported
and, if nothing else, are considered out-dated. So what is the new
alternative? I've had a quick look for information on xml but haven't
found anything I could understand - it seems to be solving a much
bigger problem than the one I have here - but maybe I'm just not onto
the right link.

Appreciate any thoughts/ recommendations.

Thanks a lot,
Andrew
 
R

RB Smissaert

Nothing wrong with .ini files that I can see and I am sure those API
functions will remain
for a very long time to come. Unless you have other reasons to change I
would stick to .ini files.

RBS
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top