Turns a data structure into a string and returns this string.


GML Code Example


Argument Description
index The index of the grid to write.

Returns: String


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


GML Code Example

 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.

Back: DS Grids

No Examples Submitted

Does this page need better examples? Be the first to Submit

No Edits Suggested

Is this page unclear or not descriptive enough? Suggest an edit to the page and with enough upvotes your changes will be made.

No Questions Have Been Ask

Do you have a question about this page? Ask it Here