Click to See Complete Forum and Search --> : Variable Question
anvil76
June 13th, 2001, 07:21 AM
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
ant
June 13th, 2001, 09:11 AM
what do you mean by referce?
--Ant
--------------------------------------------------
check out my newest freeware
E-mail me at: cgeorge@thevortex.com
for the address
anvil76
June 13th, 2001, 12:27 PM
What I mean is I want the value of the varable stored in an external source and not hardcoded in the program.
Clearcode
June 13th, 2001, 12:48 PM
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
Joe Keller
June 13th, 2001, 01:48 PM
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.
ecannizzo
June 13th, 2001, 01:50 PM
You can also use ini files to save this information.
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.