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

Discussion

Example

The following sample code is from the cnv2html sample program:

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