ds_grid_write


Description

This function can be used to convert the given ds_grid into a string, which can then be stored in an external file (for example). You can read the returned string from this function back into a ds_grid using the function ds_grid_read().

NOTE: The returned string is not a human readable string, but rather a dump of the contents of the data-structure.


Syntax:

ds_grid_write(index);

Argument Description
index The index of the grid to write.


Returns:

String


Example:

ini_open("Save.ini");
ini_write_string("Save", "0", ds_grid_write(mygrid));
ini_close()

The above code will open an ini file (creating it if it doesn't already exist) and then write the given ds_grid as a string to that file.