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.
|index||The index of the grid to write.|
ini_write_string("Save", "0", ds_grid_write(mygrid));
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.