title: PLSQL : Open file in write mode
body: <p>It is probably something simple but I ask it anyway :</p>
  
  <p>I want to popen a file in write mode (not appending), it starts from the beginning. If the file does not exist, it should be created it.</p>
  
  <p>I tried this : </p>
  
  <pre><code>ficErrors := UTL_FILE.FOPEN(myDirectory, errorsFilename, 'W');
  </code></pre>
  
  <p>I have this error :</p>
  
  <p>ORA-29283 invalid file operation ORA-06512 at "SYS.UTL_FILE"</p>
  
  <p>ty</p>