How can I write the output of a query into individual text files? Each file would be written to a separate folder and have unique name. Oracle on Win

I’d like to be able to write each individual row returned from a query into its own text file and directory. This is using Oracle on windows. I have access to toad and sqlplus.This would be a one off exercise (looking for a quick way to archive some data from a system before it is decommissioned). Oracle Enterprise Edition Release 9.2.0.7.0.