GML Grid read string from included file

zendraw

Member
Is it possible to read a string from an included file? i mean ds_grid_read(grid, includedfile); baring in mind that the string in the included file is saved with ds_grid_write();
 
Save:
GML:
var _file = file_text_open_write("save.txt");
file_text_write_string(_file, ds_grid_write(grid));
file_text_close(_file);
Load:
GML:
var _file = file_text_open_read("save.txt");
ds_grid_read(grid, file_text_read_string(_file));
file_text_close(_file);
 
Top