# fpFilterFile()

This function filters text from an input file to an output file.

If the output file path refers to an existing directory, an extended error code is set in `pContext` and returns `KVERR_General`. If `KVERR_ General` is returned, you can retrieve the extended error code by using fpGetKvErrorCodeEx().

## Syntax

    KVErrorCode pascal fpFilterFile(
        void             *pContext,
        char             *szInputFile,
        char             *szOutputFile,
        KVSummaryInfoEx  *pSummaryInfo );

## Arguments

`pContext` | A pointer returned from fpInit() or fpInitWithLicenseData().
`szInputFile` | A pointer to the input file.
`szOutputFile` | A pointer to the output file.
`pSummaryInfo` | This argument is reserved. It must be `NULL`.

## Returns

The return value is an error code. See KVErrorCode.

## Discussion

This function runs in process or out of process. See The Filter Process Model.

## Example

    error = (int)(*pFilterInterface->fpFilterFile)( pFilter, srcFile, outFile, NULL );

_FT_HTML5_bannerTitle.htm