Up |
SDictSaveOptions
Save a dictionnary content in a file.
The format can be customized :
- format : what you want but you should have two '%s' modifiers. By default, the format is "%s : %s\n". An other example could be "key = %s, value = %s\n".
- undefined : il a value is nil or undefined, you can choose what will be stored into the file. By default, this is "UNDEFINED".
- flag : if you want overwrite an old file content, choose SDICT_OVERWRITE (default) otherwise to append the current dictionnary content, choose SDICT_APPEND.
Prototype :
fun [SDict W] I
- SDict : a string dictionnary Scol object.
- W : a write reference file.
- S : the format. If nil then format is equal to the default format (see above)
- S : the undefined value. If nil then the undefined value is equal to the default undefined value (see above).
- I : a flag : SDICT_OVERWRITE or SDICT_APPEND.
Return : I 0 or nil if an error occurs.