ds_grid_write

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

Syntax:

GML Code Example

ds_grid_write(index);


Argument Description
index The index of the grid to write.


Returns: String


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


Example:

GML Code 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.


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