int Ini_WriteToFile (IniText handle, const char pathname[]);
Writes the tag/value pairs in the list identified by handle to the file identified by pathname.
If you want to write the data to a destination other than a file, use the Ini_WriteGeneric function.
Input | ||
Name | Type | Description |
handle | IniText | A handle returned from Ini_New. It represents the list of in-memory tag/value pairs. |
pathname | const char [] | The pathname of the file to which to write the tag/value pairs.
If a file with that pathname already exists, it will be overwritten. If the pathname is not absolute, the file is created relative to the current working directory. Pass 0 to write the tag/value pairs to the standard output stream. |
Name | Type | Description | ||||||||||||||||||||
status | integer | Indicates whether the function was successful. A zero indicates success. A negative value indicates an error. If the value is from Among the more commonly encountered errors are:
|