File Content Extraction 26.3
Filter SDK C Programming Guide

# fpCloseSubFile()

DEPRECATED: The `fpCloseSubFile()` function is deprecated in File Content Extraction version 26.2 and later. This function relates to the deprecated `fpOpenSubFile()` function. OpenText recommends that you use fpOpenDocumentFromSubFile() or fpOpenFile() instead.

This function is still available for existing implementations, but it might be incompatible with new functionality and might be removed in future.

Closes a stream opened by fpOpenSubFile().

## Syntax

    int (pascal *fpCloseSubFile) (
            KVInputStream *stream);

## Arguments

`stream` | The stream to close. This is a pointer returned by fpOpenSubFile().

## Returns

- If the subfile is closed, the return value is `KVERR_Success`
- If the subfile is not closed, the return value is an error code.

## Lifetime and Memory Management

- After you close the subfile, the stream is no longer valid and must not be accessed.

Copyright 1997-2026 Open Text
Version 26.3 | Last updated July 2026

Send documentation feedback

Close

Send documentation feedback

To send feedback using your default email client, open an email window.

Otherwise, send your feedback and the information below to MFI-swpdl.idoldocsfeedback@opentext.com.

We appreciate your feedback!

Product: File Content Extraction 26.3

Topic Title: fpCloseSubFile()