Utl_file with cursors for loop

Hello everyone,
Anyone have examples of cursors with utl_file?
one or two cursors with 3, 5 or 10 fields, using utl_file and cursors with the FOR cycle to print a .txt or .csv file

I really appreciate the examples that you can indicate or show me
Thanks a lot

there's an example of that here: https://oracle-base.com/articles/9i/generating-csv-files

Note, this will create files on the server. If you want files on the client, right-click in the grid and use "Export Dataset".