VB6 - Referencing and Using a Script File

q582gmzhi

Registered User.
Local time
Today, 19:43
Joined
Dec 23, 2002
Messages
48
Hi,

I have seen VB app's that use a script or text file such as "variables.ini" to hold variables info.

ie:
Path="c:\test"
IP="192.123.34.134"

Does anyone have any simple examples of how VB refers to and uses this type of script file.

I will be writing the app in VB6. Thanks in advance.

Daz.......
 
You might want to search through the following site for examples...

http://www.allapi.net/apilist/WritePrivateProfileSection.shtml

As a side note, initialization files (which typically hold user and computer specific info that an application might need when starting up...YourAppName.ini) have been supplanted by XML config files as the popular choice... You can also use the registry to hold this type of info though that too has gone out of fashion...

Regards,
Tim
 
Thanks for the link and advice.

Daz....
 
Last edited:

Users who are viewing this thread

Back
Top Bottom