dbSaveGoAhead WebServer APIGoAhead EMF

Synopsis

Dump the contents of a database to file.

Prototype

 #include "emfdb.h"

 int dbSave(int did, char_t * filename, int flags);

Parameters

diddatabase Identifier
filenamename of the file to write to
flagsunused, provided for compatibility with earlier versions

Description

Write the contents of the database (i.e., ALL tables) to a text file.

Return Value

dbSave returns 0 if successful, or -1 if an error.

Example

int nCheck = dbSave(0, T("config.txt"), 0);

See Also

dbOpen(), dbLoad()