Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Reading and Writing to .INI files.
Message
De
16/07/1999 11:20:38
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00242096
Message ID:
00242324
Vues:
25
If its a custom .ini file, not a window's system one, I would use FileToStr() and StrToFile(). They are a regular part of VFP6.0 and were in foxtools before, I believe.

>>I'm looking for the best way to read and write to an .INI file. I have come up with using low level functions FGET(), FPUT(), or using the REGFN() function available in Foxtools.dll. I can't help but think that there is a better way to do this...
>>
>>Thanks for any responses in advance.
>
>Hi Dan,
>
>In addition there's my IniFiles class in the UT files section under Win32 and other APIs. The one thing that it does, which the registry class in the FFC doesn't do, is that when you write to the WIN.INI file, it automatically tells any open application to reload the modified section. Without this, changes to the file are not recognized by open applications.
--Todd Sherman
-Wake Up! Smell the Coffee!
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform