Hi, anyone know how to use ini files?

I'm writing an app that uses the write function to write lines of data to a text file and need an ini file so different versions can have different field names (and a different number of fields for that matter) in the tables.

I assume I write a text file settings.ini with lines like:
field1name = TIME_STAMP
then open it using:
open C:\settings.ini for input as #1.

How do I glean out the info I need then and put in to lines of code?

Also, if I have say fieldname1 to fieldname200, how do I deal with the empty ones for tables with less than 200 fields? In particular in a write line like this:
Write #1, rstMon("TIME_STAMP") & "", rstMon("RANGE_ERR") & ""...

Thanks!!!