However, if you want or need to use UTL_FILE, then you have complete programmatic control over reading the contents of the file you opened.
In your PL/SQL routine, you can use the GET_LINE command to read one line of text from the file. Once you have that line of text, how you handle it is up to you. A blank line should appear as just a carraige return in the text file. When you read a line with only a carraige return, the GET_LINE routine will only return NULL.
Dig Deeper on Oracle database backup and recovery
Related Q&A from Brian Peasland
Oracle expert Brian Peasland answers one reader's question about common pitfalls when connecting Oracle to outside programs. Continue Reading
One reader asks expert Brian Peasland a question about datafile sizes with the Oracle RMAN duplicate 10g command. Continue Reading
Managing parent table-child table relations in Oracle SQL environments is key to efficient programming. Continue Reading
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.