WriterCreateCFFStream(String, Schema, String, String, Encoding) Method

Creates a new Combined File Format (.cff) COMTRADE file stream.

Definition

Namespace: Gemstone.COMTRADE
Assembly: Gemstone.COMTRADE (in Gemstone.COMTRADE.dll) Version: 1.0.150 -- Release Build+cf27d9034cc0efcb23d4abf4b149b6ece9a2e1b7
public static FileStream CreateCFFStream(
	string fileName,
	Schema schema,
	string[]? infLines = null,
	string[]? hdrLines = null,
	Encoding? encoding = null
)

Parameters

fileName  String
Target file name. Must have ".cff" extension.
schema  Schema
Schema of file stream.
infLines  String  (Optional)
Lines of "INF" section to write to stream, if any.
hdrLines  String  (Optional)
Lines of "HDR" section to write to stream, if any.
encoding  Encoding  (Optional)
Target encoding; null value will default to UTF-8 (no BOM).

Return Value

FileStream
New file stream for Combined File Format (.cff) COMTRADE file, ready to write at data section.

See Also