I am wanting to output a Query to a CSV file and am using the below as a small test;
spool c:\\test.csv select /*csv*/ username, user_id, created from all_u
You can directly export the query result with export option in the result grig. This export has various options to export. I think this will work.