protected function _prepareOutput($outputFile, $input = null)
    {
        if ($outputFile === null) {
            $output = '';
        } else {
            $output = @fopen($outputFile, 'wb');
            if ($output === false) {
                if (is_resource($input)) {
                    fclose($input);
                }
                throw new Crypt_GPG_FileException(
                    'Could not open output file "' . $outputFile . '"',
                    0,
                    $outputFile
                );
            }
        }

        return $output;
    }
protected function _prepareOutput($outputFile, $input = null)
    {
        if ($outputFile === null) {
            $output = '';
        } else {
            $output = @fopen($outputFile, 'wb');
            if ($output === false) {
                if (is_resource($input)) {
                    fclose($input);
                }
                throw new Crypt_GPG_FileException(
                    'Could not open output file "' . $outputFile . '"',
                    0,
                    $outputFile
                );
            }
        }

        return $output;
    }
protected function _prepareOutput ( $ outputFile , $ input = null ) { if ( $ outputFile === null ) { $ output = '' ; } else { $ output = @ fopen ( $ outputFile , 'wb' ) ; if ( $ output === false ) { if ( is_resource ( $ input ) ) { fclose ( $ input ) ; } throw new Crypt_GPG_FileException ( 'Could not open output file "' . $ outputFile . '"' , 0 , $ outputFile ) ; } } return $ output ; }
Prepares command output

@param string  $outputFile the name of the file in which the output
data should be stored. If null, the output
data is returned as a string.
@param boolean $input      the input resource, in case it would need
to be released (closed) on exception.

@throws Crypt_GPG_FileException if the file is not writeable.
Prepares command output