For a project, I need to be able to save the current values of variables in a text file, then load them again.
Using the function load() and specifying the text file, it's quite easy to get the values back, using a format similar to the get method of the web (var1=val1&var2=val2&...).
However, the send() function, which seems to be the inverse of load(), only sends get or post data.
Load will work with the text files, then, but send will just send post data to a text document which will, if lucky, do nothing or, if unlucky, give you errors or crash or something.
So.... ironically, it would be easy in this case to do it on the web with php, etc, but the text file needs to be the output for this as it will be local. No webpages should be used.
also, the other hard part will be not just adding to the .txt, but actually creating a new .txt when you save.
Any ideas?
One thing I thought of was if there's a way to code a program in C++ or somethign that would be able to accept POST data, but that seems quite complex.
