How do I to save/load array in the hard disk?

Get help using Construct 2

Post » Tue Apr 15, 2014 2:36 pm

Hi

How do I to save/load array in the hard disk?

I need the file in my project, in a folder (my proyect)\mydata\array Players
(my proyect)\mydata\array Countries
(my proyect)\mydata\array Cities

and load and save in middle of the execution.

Tks
Rgds
B
6
S
1
Posts: 47
Reputation: 518

Post » Tue Apr 15, 2014 3:35 pm

Save the JSON to WebStorage. In node-webkit you can alternatively use the node-webkit plugin to write a file to disk, but WebStorage still works in node-webkit as well so you may as well use that.
Scirra Founder
B
397
S
236
G
88
Posts: 24,389
Reputation: 194,448

Post » Wed Apr 23, 2014 5:18 pm

Thanks for the reply,

(my proyect) do you have a sent to get it?

I can get it reading in my PC, but i want to get automaticaly.

Tks
Rds
B
6
S
1
Posts: 47
Reputation: 518


Return to How do I....?

Who is online

Users browsing this forum: Elliott, KSLR, totoe, Voytek, Yahoo [Bot] and 25 guests