# fpFileToInputStreamCreate()

This function creates an input stream from an input file.

## Syntax

    BOOL pascal _export fpFileToInputStreamCreate(
        void            *pContext,
        char            *pszFileName,
        KVInputStream   *pInput);

## Arguments

`pContext` | A pointer returned from fpInit() or fpInitWithLicenseData().
`pszFileName` | A pointer to the name of the input file to be converted.
`pInput` | A pointer to the developer-assigned instance of `KVInputStream`. The `KVInputStream` structure defines the input stream that contains the source for the conversion. See KVInputStream.

## Returns

- If the call is successful, the return value is `TRUE`.

- If this call is unsuccessful, the return value is `FALSE`. Processing is halted.

## Discussion

After the conversion is complete, call `fpFileToInputStreamFree()` to free the memory allocated by this function.

## Example

The following sample code is from the `cnv2xml` sample program:

    if(!(*KVXMLInt.fpFileToInputStreamCreate)(pKVXML, argv[i++], &Input))
       {
          printf("Error creating input stream\n");
          (*KVXMLInt.fpShutDown)(pKVXML);
          mpFreeLibrary(hKVXML);
          return (5);
       }

© Copyright 2006-2019 Micro Focus or one of its affiliates | Send documentation feedback Close Send documentation feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a mail client, and then send this email to swpdl.idoldocsfeedback@microfocus.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_FT_HTML5_bannerTitle.htm