Eliteofdelete
Member
Hey guys, got another question. I am saving data repeatedly to a file based on the results of what I am doing. However, the file does not save the information I am writing into it in a chronological fashion rather it puts the information in alphabetical order. Is there a way to make it not do this? I guess I could put a time stamp at the start of the info of H:M?
Here is what the test code looks like.
It gives me this for the output.
I was hoping it would be "We got..." first and then so on as I had written it. Any Suggestions?
Edit: So after thinking more about it, as far as I know the best way would be to add something like:
And that would give my information a chronological ordering rather than alphabetic. I'd rather not have such information added, but I guess it isn't the worst of things =\
Here is what the test code looks like.
Code:
file_to_map("filename.txt", info);
info ["We got 3 A-Boo Clues in 10 adventures"] = "";
map_to_file(info, "filenametxt", false);
file_to_map("filename.txt", info);
info ["I love dogs"] = "";
map_to_file(info, "filenametxt", false);
file_to_map("filename.txt", info);
info ["1 I love dogs"] = "";
map_to_file(info, "filenametxt", false);
file_to_map("filename.txt", info);
info ["This is a test"] = "";
map_to_file(info, "filenametxt", false);
file_to_map("filename.txt", info);
info ["2 This should be last...."] = "";
map_to_file(info, "filenametxt", false);
It gives me this for the output.
Code:
1 I love dogs
2 This should be last....
I love dogs
This is a test
We got 3 A-Boo Clues in 10 adventures
I was hoping it would be "We got..." first and then so on as I had written it. Any Suggestions?
Edit: So after thinking more about it, as far as I know the best way would be to add something like:
Code:
file_to_map("filename.txt", info);
info [""+now_to_string("HH:mm")+" I love dogs"] = "";
map_to_file(info, "filenametxt", false);
And that would give my information a chronological ordering rather than alphabetic. I'd rather not have such information added, but I guess it isn't the worst of things =\
Last edited: