|
-
Aug 14th, 2002, 03:24 AM
#1
Thread Starter
New Member
How can I read and modify a INI file
I want to make a program that modifies INI files, but I don't know how to make, How can I access the Sections, and the Keys??
Thanks.
-
Aug 14th, 2002, 05:17 AM
#2
New Member
I have a DLL written in VB6 that works with inifiles.
I think the functions you need are in that DLL.
You can use this DLL in VB.NET.
I haven't tried converting the DLL to .NET yet.
If you want to I can give it to you.
-
Aug 14th, 2002, 05:33 AM
#3
Thread Starter
New Member
Can you send me the code? and I will try to convert the .dll of VB 6 to .NET, if you can't send me the code I am interested anyway.
Thanks.
mailto: [email protected]
-
Aug 14th, 2002, 05:36 AM
#4
New Member
-
Aug 14th, 2002, 06:52 AM
#5
Lively Member
You can use the SetPrivateProfile,GetPrivateProfile functions to read and write to INI files
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
Dont quote anyone if you can help it -
THM
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
-
Aug 14th, 2002, 08:15 AM
#6
yay gay
i saw i think in gotdotnet.com a class for reading them
-
Aug 14th, 2002, 08:27 AM
#7
not to downplay ini, but ini has been replaced by XML now. Developers more often use xml these days for configuration files. Also you can store all your config data and use a technique called Serialization to easily save the array's state to an xml file and restore/save it when need be.
Ini is still fine, but you really should look into XML when you have the time.
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
|