Saving data in many formats

Save data. It might sound complicated but once you get the hang of it the it will be really easy.

MEM files (simplest)
To save a single string in a MEM file, use MEM$.

MEM$=STRINGTHATSTORESDATA$

Then use SAVE "MEM:FILENAME HERE"

To load the data use LOAD "MEM:FILENAME HERE"

Now use WHATEVER$=MEM$

WHATEVER now will contain the data of the mem file. Simple, right?

MEM files with more than one thing to save (bit complicated)
To save more data in a MEM file use FOR loops and MID$. Also its suggested to use seperators unless all data has a fixed length.

Use this to store data:

MEM$=DATA1$+";"+DATA2$

To get data, use this:

TMP$=""

A=0

FOR I=0 TO 0

IF MID$(MEM$,A,1)=";" THEN I=1GOTO@SKIP

TMP$=TMP$+MID$(MEM$,A,1)

@SKIP

A=A+1

NEXT

DATA1$=TMP$

TMP$=""

FOR I=0 TO 0

IF MID$(MEM$,A,1)=";" THEN I=1GOTO@SKIP

TMP$=TMP$+MID$(MEM$,A,1)

A=A+1

NEXT

DATA2$=TMP$

You now should have the data that was written to the MEM seperated.

Please tell me if something goes wrong, my 3DS is not nearby me right now and I wrote this in my mind.

Will be added when I have time

 * SCR
 * COL
 * GRP
 * CHR