Welcome to the board..

WRITEVALUE is used to write a value to the registry.
WRITELINE is used to write a line to a TEXT file.
WRITEPROFILESTRING is used to write an entry in an INI file.

From what you are talking about, you probably need WRITELINE. A pretty decent example is in the Guide provided with the KiXtart download. Or, you can look at the LOGGER() UDF in the UDF Forum here on this site.

HTH,

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's