Ok, I just got around to making my savegame function and I decided to make it dummy proof. That is, the person who saves the game won't be able to use invalid characters in file (i.e. \,/,|,*,etc.). Well one invalid character is a the double quatation mark ("). How can I check the string for ". Also, is there an InString function or something to check the string. Right now I'm using this as my code.
rem check for invalid characters
For ext=1 to LEN(filename$)
If MID$(filename$,ext)="." or MID$(filename$,ext)="\" or MID$(filename$,ext)="/" or MID$(filename$,ext)=":" then filename$=LEFT$(filename$,ext-1)
If MID$(filename$,ext)="*" or MID$(filename$,ext)="?" or MID$(filename$,ext)="" or MID$(filename$,ext)="|" then filename$=LEFT$(filename$,ext-1)
Next ext
If you want fresh underwear in the morning, take it off the night before.