-
Variable Question
I am working on a program the has to look for certain files in a directory. This directory might change names. Right now I have the paths hardcoded in the program. I would like to know how to referce the paths by either an external text file or a registry entry. Does anyone know of a good reference for this out on the web.
Thanks
-
Re: Variable Question
what do you mean by referce?
--Ant
--------------------------------------------------
check out my newest freeware
E-mail me at: [email protected]
for the address
-
Re: Variable Question
What I mean is I want the value of the varable stored in an external source and not hardcoded in the program.
-
Re: Variable Question
You can save and read strings to the applications part of the registry - have a look at the SaveSetting and LoadSetting keywords.
D.
-------------------------------------------------
Ex. Datis: Duncan Jones
Merrion Computing Ltd
http://www.merrioncomputing.com
-
Re: Variable Question
you could just store the path names in a basic text file.. open the text file and read the paths.
You would then just have to change the paths in the text file instead of in your code.
-
Re: Variable Question
You can also use ini files to save this information.