|
-
June 13th, 2001, 07:21 AM
#1
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
-
June 13th, 2001, 09:11 AM
#2
Re: Variable Question
what do you mean by referce?
--Ant
--------------------------------------------------
check out my newest freeware
E-mail me at: [email protected]
for the address
-
June 13th, 2001, 12:27 PM
#3
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.
-
June 13th, 2001, 12:48 PM
#4
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
-
June 13th, 2001, 01:48 PM
#5
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.
-
June 13th, 2001, 01:50 PM
#6
Re: Variable Question
You can also use ini files to save this information.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|