You can create a dictionary and store your values in there. The dictionary can be saved as a JSON text file.
When your app opens, you can load this data in a dictionary in your app, to access it whenever you need. When your app closes, or whenever you change this dictionary, you could save the file. Remember that any string data needs to have be UTF8 encoded.
• Working with dictionary and JSON
• Saving the JSON data to a file
• Loading the JSON data from a file
• Write / Save using a Binary Stream also works
Make sure it is UTF8
• Define Encoding
When you store string data in a dictionary, you should make sure it is UTF8, as I mentioned:
Var d As New Xojo.Core.Dictionary
d.value( SomeKeyValue ) = MyStringValue.DefineEncoding( Encodings.UTF8 )
By the way, the if the key value is a string, this needs to be UTF8 as well.