First: I have the following code to take a text file....and create a map from the file... then save the map into a different text file.
global.words = ds_map_create();
show_message("hello")
f = file_text_open_read(working_directory+"\diction.txt")
while(!file_text_eof(f))
{
t = file_text_read_string(f);
ds_map_add(global.words,t,1);
file_text_readln(f)
}
show_message("complete")
file_text_close(f)
show_message(ds_map_exists(global.words, "ANGRY"));
show_message(ds_map_find_first(global.words));
show_message(ds_map_find_last(global.words));
f = file_text_open_write("e:\wordmap.txt")
file_text_write_string(f, ds_map_write(global.words))
file_text_close(f)then I have this code to load the map (in a different program) However it just freezes without any shown errors.
global.words = ds_map_create();
show_message("hello")
f = file_text_open_read("e:\wordmap.txt")
while(!file_text_eof(f))
t = file_text_read_string(f);
ds_map_read(global.words,1)
show_message("complete")
file_text_close(f)
what do I need to change and why doesn't this work?











