If I understand the question you can create the file ok, but are wondering how to generate the x'1c' values as separators. I think x'1c' is equivalent to chr(28), so maybe you can adopt Mike's spool suggestion with this function.
select col1 || chr(28) || col2 ...