Dear,

Te concept of such files is that the keys are the same. In your example we read many
times hostname=12345
Two suggestion:
- read the unchanged file with Open/RedaLine/Close
- change hostname=12345 to
f.e.
hostname1=12345
hostname2=12345
hostname3=12345
for make it possible to use the ReadProfileString function.
greetings.
_________________________
email scripting@wanadoo.nl homepage scripting@wanadoo.nl | Links | Summary of Site Site KiXforms FAQ kixtart.org library collection mirror MCA | FAQ & UDF help file UDF kixtart.org library collection mirror MCA | mirror USA | mirror europe UDF scriptlogic library collection UDFs | mirror MCA