Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

how to determine if a file is empty in pl/sql

548623Nov 28 2006 — edited Nov 28 2006
Hi, guys.
I am using pl/sql and need to find if a file is empty, I try to use utl_file.get_line (bfile_name, test_line) to read from an empty file and hope it will raise the no_data_found exception, but it doesn't work. so I use length(test_line) , but it shows length 0f test_line is 558, how come it? how to determine if a file is empty?
can any one help to solve this problem? Thanks very much!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 26 2006
Added on Nov 28 2006
8 comments
1,223 views