Damn Microsoft bug!
Lesson learned:
Do not parse text file that will have "ID" as the first 2 characters in your output. Excel will throw this error if you import the text file containing it...
"SYLK: File format is not valid" error message when you open file
CAUSE
This problem occurs when you open a text file or CSV file and the first two characters of the file are the uppercase letters "I" and "D". For example, the text file may contain the following text:ID, STATUSNote This problem does not occur if the first two letters are lowercase "i" and "d".
123, open
456, closed