Writing File to Oracle Directory

How to write file to ORACLE Directory using PL/SQL? Creating directory GRANT CREATE ANY DIRECTORY TO apex_19_2; CREATE OR REPLACE DIRECTORY my_dir AS 'C:\App\MY_DIR'; Writing File To Directory DECLARE l_file UTL_FILE.file_type; BEGIN l_file := UTL_FILE.fopen ('MY_DIR', 'First_File.txt', …