ConfigFile::saveFile

From King Arthur's Gold Wiki
Revision as of 15:58, 29 September 2012 by Shadlington (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Save the given .cfg file into the ConfigFile. Returns true if this was successful, otherwise false.


If not passed any parameters, saves to the ConfigFile's current internal path (as set by its constructor or ConfigFile::loadFile).

If you pass it a path that does not end with .cfg then .cfg will be appended. If the .cfg file does not exist it will be created.

This method does not change the internal path of the ConfigFile.

bool saveFile()
bool saveFile( string file )

Object method of: ConfigFile