Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Reading an INI file
Message
Information générale
Forum:
Visual Basic
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00187229
Message ID:
00187979
Vues:
29
>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform