fpFileToOutputStreamCreate()

This function creates an output stream from an output file.

Syntax

BOOL pascal _export fpFileToOutputStreamCreate( 
    void                *pContext,
    char                *pszFileName,
    KVOutputStream      *pOutput );

Arguments

pContext

A pointer returned from fpInit() or fpInitWithLicenseData().

pszFileName

A pointer to the name of the output file to create.

pOutput

A pointer to the developer-assigned instance of KVOutputStream. The KVOutputStream structure defines the output stream to which Export writes the generated XML. See KVOutputStream.

Returns

Discussion

Example

The following sample code is from the cnv2xml sample program:

if (!(*KVXMLInt.fpFileToOutputStreamCreate)(pKVXML, argv[i], &Output))
   {
      printf("Error creating output stream\n");
      (*KVXMLInt.fpFileToInputStreamFree)(pKVXML, &Input);
      (*KVXMLInt.fpShutDown)(pKVXML);
      mpFreeLibrary(hKVXML);
      return 6;
   }