The purpose being is to generate the $section and $key by reading through the INI file without knowing these values. In other words, "automating" this process.

So...

What the intent was to -
  • Read the lines..
  • Determine if it is commented, header, key, etc.
  • Once all parameters are found for READPROFILESTRING, it would do just that.
If there is a better way to do this, I am open to suggestions.
Thanks,
Kent

[ 18. July 2003, 19:41: Message edited by: kdyer ]
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's