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!