General information
Category:
Coding, syntax & commands
>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only