This method of the UserFileIOPermission Class determines whether the object allows user-directed file I/O for writing files.
public boolean canWrite();
Returns true if the object has permission to write; otherwise, returns false.