Re: Getting started with Javascript and Sync, where to go?
By: Sam Alexander to All on Sun Apr 12 2015 08:28 am
> Also is it easy to save data back to however Sync stores data? I have a few
> ideas of add-ins I'd like towrite, but most will require saving user data
> and pulling data from the user's profile.
There's a few ways of varying degrees of "easy".
Simplest for some stuff is the ini*() methods of the File class. More complex
i
s the basic file I/O stuff.
Then there's the recordfile stuff... looks like it's not documented though, so
I
wouldn't reccomend it unless you need to store data in a binary format.
Next up would be using the File class and JSON object to read/write JSON files.
After that would be the JSON DB stuff from mcmlxxix. Quite nice, but has some
c
onfiguration requirements and a couple gotchas.
---
http://DuckDuckGo.com/ a better search engine that respects your privacy.
■ Synchronet ■ My Brand-New BBS (All the cool SysOps run STOCK!)
|