Talk:Village/@comment-24.239.29.135-20140710055435/@comment-9531161-20140710060124

Saving and loading to memory ("MEM") requires that you set the variable MEM$. When you do "SAVE "MEM:NAME", you're putting the contents of MEM$ into the file called NAME. So, if you wanted to save the variable NAME$ into memory, you'd actually want to do this (after getting the name using input):

MEM$ = NAME$ SAVE "MEM:NAME"

And then to load:

LOAD "MEM:NAME" NAME$ = MEM$

There are resources on this wiki which probably explain it further, but basically the MEM$ variable holds what you will be storing and loading to/from a MEM file. The file itself can be named anything (in here, it's called NAME), but the file will hold the contents of MEM$. When you LOAD a MEM file, the contents of the file will be put in the variable MEM$, so you can retrieve it afterwards.