title: FileDescriptor to open a file in Java
body: <p>I want to have a method whose purpose is this :</p>
  
  <p><code>fileDescriptor openFile (filename)</code> : will open a file with a specific name (it will erase the content if it already exists) and put a “Beginning of Process” as a first line); return a file descriptor</p>
  
  <pre><code>public FileDescriptor openFile(String fileName){
  }
  </code></pre>
  
  <p>Can anybody help me wd this?</p>