0

How can i use same file (like ABC.txt) to write using UTL_FILE.

Currently what is happening is whenever i am trying to write on ABC.txt previous entry is getting deleted or replaced with latest entry. I want all the entries I have made be present. I am using Oracle 10g PL/SQL.

1 Answer 1

7

If I understood you well, you want to append new lines to an existing file (keeping existing content). In this case you need to open the file in append mode:

file_handle = utl_file.fopen( directory, 'file_name', 'a' );

That should be it.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.