I tried using ajax but I don't know if it is possible to write to a file using it. I know how to read a file though. Is there anything else I can do to read and write a file using an something in C2?
If you want it via a server online well then I have no idea but if you want to create files on computer and then retrieve data from it there might be a plugin for it and if not I might make one for Construct2
Develop games in your browser. Powerful, performant & highly capable.
There is this third-party-plugin: