Difference between revisions of "ConfigFile::saveFile"
From King Arthur's Gold Wiki
Shadlington (Talk | contribs) (Created page with "<onlyinclude> Load the given .cfg file into the ConfigFile. Returns true if this was successful, otherwise false. </onlyinclude> If you pass it a path that does not end with .cfg...") |
Shadlington (Talk | contribs) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<onlyinclude> | <onlyinclude> | ||
− | + | Save the given .cfg file into the ConfigFile. Returns true if this was successful, otherwise false. | |
</onlyinclude> | </onlyinclude> | ||
− | If you pass it a path that does not end with .cfg then .cfg will be appended. If the .cfg file does not exist | + | |
− | + | 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]]. | ||
<syntaxhighlight lang="cpp"> | <syntaxhighlight lang="cpp"> | ||
− | bool | + | bool saveFile() |
+ | bool saveFile( string file ) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Latest revision as of 15:58, 29 September 2012
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