>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.
Hi Todd,
Sure you could use FILETOSTR() and STRTOFILE(), but I think it's a lot more straight forward (not to mention faster) to use the API. Otherwise, you have a lot of string parsing to do. BTW, neither of these functions were in Foxtools prior to their introduction to the language proper in 6.0.
While on the subject of Foxtools, two functions GetProStrg() and PutProStrg() are available in the versions of the library beginning with 5.0 at least. Unfortunately, prior to 6.0 the documentation incorrectly stated that you could read and write from any INI file. In reality, you could only use these with WIN.INI. Since it isn't mentioned, I assume that the PutProStrg() function doesn't advise other open applications in a change to WIN.INI, which should be done.
George
Ubi caritas et amor, deus ibi est