Posted 21 July 2014 - 08:07 AM
So I am making a text-based adventure game, and I am trying to use the fs API to save information to separate files so the player can save/load games. I've done this before, and it has always worked. But for some reason, whenever I try to use it with this program, the program ends (without reporting an error), and I can't delete the file or the directory I tried saving to, but I can edit the file just fine.
If anyone can help, that would be great. If you need the program, you can find it here: http://pastebin.com/3xQTJjMV Everything works except the save function and the load function.
I am usually able to get programs to save to other files, so this is really confusing me.
If anyone can help, that would be great. If you need the program, you can find it here: http://pastebin.com/3xQTJjMV Everything works except the save function and the load function.
I am usually able to get programs to save to other files, so this is really confusing me.