I was recently using UTL_FILE.PUT_LINE to write to a text file but realized that the carriage returns PUT_LINE adds were screwing my output up. So I changed the package to UTL_FILE.PUT but now it writes an empty file.... no data at all. I'm wondering if the usage for PUT is the same as it is for PUT.LINE. Here is a sample of my script with PUT instead of PUT_LINE (works fine with PUT_LINE but not with PUT):
LBL_TEXT := 'TEXT HERE';
LBL_OUTPUT := UTL_FILE.FOPEN(OUTPUTPATH,
LBL_FNAME,
'W');
UTL_FILE.PUT(LBL_OUTPUT,
LBL_TEXT);
END;
/