>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...
>
If you're using VFP6, the FFC contains a class that can reliably read and write .INI files. Look at the code for the class carefully, because the meaning of some of the parameters may not leap out at you if you haven't worked with the underlying API calls before. There's a thread about one of the methods involved that occurred within the past day or two.
With older version of VFP (or even VFP6) there are classes that can be downloaded from the Files Se4ction here on UT that will manipulate INI files reliably using API calls, and their documentation may be better than the scanty docs on the FFC classes.