I\'m using SQL Developer and I\'m trying to save result of a query into the text file using spool command.
spool D:\\file.txt SELECT * FROM TABLE SPOOL OFF <
It looks to me that you're not executing the query, just entering it into the command buffer. You need to add a semicolon or a slash to actually execute it.