ds_list_write

Syntax:

ds_list_write(id);


Argument Description
id The id of the data structure to write.


Returns: String


Description

This function returns a string which can then be stored or transferred to another data structure using the ds_list_read function.

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


Example:

var str;
ini_open("save.ini");
str =ds_list_write(list);
ini_write_string("Lists", "0", str);
ds_list_clear(list);
ini_close();

The above code opens an ini file and then writes a string containing the information stored in the ds_list indexed in the variable "list". The list is then cleared and the ini file closed.


Back: DS Lists
Next: ds_list_mark_as_list
© Copyright YoYo Games Ltd. 2018 All Rights Reserved