INtime SDK Help
CfgNetAppend

Add entry at end of file.

DWORD Cfg(
CFGFILE cFile,
    LPCSTR  keyword,
    LPCSTR  value,
    int*    n
); 

Parameters

cFile
(in) File handle retrieved by previous CfgFileOpen with argument CFG_NET_EQUAL or CFG_NET_SPACE as type.
keyword
(in) The keyword for which the value should be set.
value
(in) The value for the keyword.
n
(in) The line number, where to insert the new line. If line number does not exist, the line is added at the end of file.

Return values

ECFG_OK for success or an error code on failure.

Remarks

Sets the value for the keyword in line n or appends at end of file.

Errors

ECFG_BADCFGFILE
File handle out of range or invalid
ECFG_WRONGFILETYPE
Wrong file type
See Also