TFormer_SetTxtDataFile

Provide Data · String encodings

Definition

Windows: ANSI; Unix: UTF-8

ERRCODE TFormer_SetTxtDataFile(HTFORM pInstance, LPCSTR pszFileName, CHAR cSeparator, CHAR cTextQualifier);

Windows only: UTF-16

ERRCODE TFormer_SetTxtDataFileW(HTFORM pInstance, LPCWSTR pszFileName, WCHAR cSeparator, WCHAR cTextQualifier);

Contract

Specifies a text file (CSV, TSV, ...) as JobData.

The column names used in the text file must match the DataField names in the FormLayout

Returns

ErrOk (0) in case of success, non-zero if an error occurred

Parameters

Parameter / typeDescription
pInstanceHTFORM


The TFORMer instance provided by a previous call to TFormer_Init

pszFileNameLPCSTR / LPCWSTR


Text/CSV/TSV filename

cSeparatorCHAR / WCHAR


DataField separator (e.g. , or ;)

cTextQualifierCHAR / WCHAR


Text qualifier (e.g. "\'" or "). Pass zero if no qualifier is used.

Search documentation

Search in
More scopes
Additional scopes

All contents