The easiest way is to put all variables into a dictionary. Then write Dictionary.AsJSON to a text file.
To load: read the text file and use 'Dictionary Load from FileSystem.FileText'. Then extract all variable values from the dictionary.
Thanks! I managed to figure out the rest on where I was going wrong as I've never used Dictionary before and I'm new to File System