Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Reading an INI file
Message
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00187229
Message ID:
00187979
Views:
28
>There's only one case where the Progfile String APIs don't manage INI files. It's when we
> want to add lines (sections or entries) to an existing file, or even create the file, or even
> delete lines... A big thing forgotten by M$... So I've written my own subs (simply based
> onto print, instr and mid$ statements...)

This doesn't sound correct to me, WritePrivateProfileString manages all the above, the only thing it won't do is delete a section if all the entries are removed, but I don't really see that as a big problem.

Files are created if they don't exist, if they do already exist then extra lines are added including section headings if they didn't previously exist. Writing with an empty value cause the entry to be deleted.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform