What is the best way to go about the file way?

All users have read/write to c:\temp\

What is the best way of creating the ini file using Kix? Had a look through the UDF's and the builtin commands and am not sure how to:

A) Create a file
B) Write a .ini style entry to the created file
C) Call said value and store it as a variable on script 'B'.

I'll continue to look through the Manual/UDF's/Forums for any clues.

Thanks

Luke