[Sugarcube2] Writing & Reading other files on server with Twine2+Sugarcube2

Hi there, using sugarcube2 and latest version of Twine2

I would like to ask if and how can I make Twine store/write data and variables in another file (on server) and how to retrieve data from it afterwards?

For example: I want to make adventure for my students and when the first student completes it, it will show him he is the 1st to finish. 2nd student from different PC will recieve message that he is 2nd and so one.
Second example would be that I make character sheets for my DnD players and would be able to retrieve their stats and inventories from my PC

Thanks in advance!