• Because you are naming the file with an "XLS" extension, Excel thinks it is a native file and is not looking for a delimiter.

    I would use "," for a delimiter and use a "CSV" extension on the file, then Excel will recognize it as a delimited file and because it is a csv, should open it in the correct manner.