I have a patch that tracks changes to about 100 integer values that define the state of my application. I keep these in a coll and a user can write the coll to disk to save a re-callable "preset".
I would like the ability to also store presets on a webserver so that everyone with internet access can dynamically load them. Ideally my patch could create a list of available presets and then let you select from the list at will and parse it on the fly, loading it into the coll and setting all the vars in the patch the same way that I do it when reading the file from disk.
The presets are now just text files made with the write command to the coll but I could re-engineer the whole thing to use JSON or XML or YAML. I spent some time looking at dict and I understand how I can serialize the data, send it over a network to a remote computer that can deserialize the data, but thats not what I'm looking for. So can anyone tell me a straightforward way to:
1. Read the file list of a directory on remote webserver (my patch will specify this directory internally).
2. Load the contents of a particular file in this directory into my patch in some parse-able format.
I also looked into jit.updl. I don't want to actually download the file (and then have to open it) but it seems I can load it's contents directly into my patch using the matrix attribute. If this is the way to do this then I will research further but it seems like a clumsy way to parse 100 key:value pairs!
I feel like I'm missing something easy and obvious thats been done hundreds of times before, but I couldn't find anything on the forum. If anyone can steer me in the right direction I would greatly appreciate it!