Creates a file output stream to write to the file with the specified
name. If the second argument is <code>true</code>, then
bytes will be written to the end of the file rather than the beginning.
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 <code>name</code> 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 name the system-dependent file name
@param append if <code>true</code>, then bytes will be written
to the end of the file rather than the beginning
@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.lang.SecurityManager#checkWrite(java.lang.string)
Creates a file output stream to write to the file with the specified name. If the second argument is <code>true</code>, then bytes will be written to the end of the file rather than the beginning. 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 <code>name</code> 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 name the system-dependent file name @param append if <code>true</code>, then bytes will be written to the end of the file rather than the beginning @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.lang.SecurityManager#checkWrite(java.lang.string)