Board Thread:Questions and Answers/@comment-97.115.151.102-20150123204136/@comment-14600979-20150123210036

Probably what you want to do is find a character you can use as a seperator. I'll use "@" for this example, but I suggest something else.

You'll need to combine all the variables you want saved into one string, like this:

You might even have to use the next line of code if you have too many variables. The second line would be MSVSTR$=MSVSTR$+STR$(VAR2)+"@" etc.

Then you need to assign that string to the system variable MEM$. MEM$=MSVSTR$

Then you can save you mem file like you save any other resource.

As for loading, first execute the LOAD instruction for the MEM.

To actually read the data, you'll have to do some string operations. Assign MEM$ (it loads it to there too) to a working string. LOADSTR$=MEM$

Then you use... uh... I forget the thing. Look at the start of the string and add one character to fetch until the last character in your string portion is "@"

Then store the number to whatever variable, discard the section from your working string, and repeat until LEN returns 0 for working string length.

Sorry that last part wasn't so helpful.