CSV is a text file. EXCEL (.XLS) is usually generated by EXCEL and is a binary.

You should be careful just changing file extensions around if you are not sure what they are.

WRITELINE/READLINE will work in the CSV file.

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