Check into the following doc on UTL_FILE().

http://technet.oracle.com/doc/server...1/utl_file.htm

-Ken