Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sectionless Get/Write in INI files?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00597735
Message ID:
00597907
Vues:
15
Hi Dorin,

that's in fact what I'm doing now: using filetostr() and alines() and ascan(). What I wanted to find out was if there was a way to do this using getprivateprofilestr, since some commercial programs, including Visual SourceSafe and xCase, using this sectionless header before having conventional [sections].

thanks,

Hank

>>I have to get entry values from an .ini file (srcsafe.ini, fwiw) that are not in a section: they are in the header of the file, before the sections. I'd also like to write to that non-section. Other than alines() <s>, how is this done? The WIN32API functions seem to always write a section, even if it's a blank ([]) section.
>>
>>thanks,
>>
>>Hank Fay
>
>Hi,
>
>May be you can use FileToStr() and then process the string.
>
>Good luck,
>Dorin
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform