Creates a file output stream to write to the file represented by
the specified <code>File</code> object. A new
<code>FileDescriptor</code> object is created to represent this
file connection.
<p>
First, if there is a security manager, its <code>checkWrite</code>
method is called with the path represented by the <code>file</code>
argument as its argument.
<p>
If the file exists but is a directory rather than a regular file, does
not exist but cannot be created, or cannot be opened for any other
reason then a <code>FileNotFoundException</code> is thrown.
@param file the file to be opened for writing.
@exception FileNotFoundException if the file exists but is a directory
rather than a regular file, does not exist but cannot
be created, or cannot be opened for any other reason
@exception SecurityException if a security manager exists and its
<code>checkWrite</code> method denies write access
to the file.
@see java.io.File#getPath()
@see java.lang.SecurityException
@see java.lang.SecurityManager#checkWrite(java.lang.string)
Creates a file output stream to write to the file represented by the specified <code>File</code> object. A new <code>FileDescriptor</code> object is created to represent this file connection. <p> First, if there is a security manager, its <code>checkWrite</code> method is called with the path represented by the <code>file</code> argument as its argument. <p> If the file exists but is a directory rather than a regular file, does not exist but cannot be created, or cannot be opened for any other reason then a <code>FileNotFoundException</code> is thrown.
@param file the file to be opened for writing. @exception FileNotFoundException if the file exists but is a directory rather than a regular file, does not exist but cannot be created, or cannot be opened for any other reason @exception SecurityException if a security manager exists and its <code>checkWrite</code> method denies write access to the file. @see java.io.File#getPath() @see java.lang.SecurityException @see java.lang.SecurityManager#checkWrite(java.lang.string)