• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

GML Grid read string from included file

Z

zendraw

Guest
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