ini_open_from_string


Description

This function will create an ini file from a string and open it for reading/writing. The string should be correctly formatted as an ini file (ie: with sections, line breaks keys and values) otherwise the ini file will not be created correctly. Note that this ini file is temporary and will be removed from memory the moment it is closed, losing any information that was stored in it, however the ini_close function returns a string of the full ini file which can then be saved to a server or to disk.


Syntax:

ini_open_from_string(string);


Argument Description
string The string containing all the ini information.


Returns:

N/A


Example:

ini_open_from_string(str)
global.sound = ini_read_string("Options", "Sound", true);
ini_close();

The above code sets a temporary ini to hold the information from the string "str", then reads from the ini before closing it again.