How do I read and write text using NW.js

Get help using Construct 2

Post » Wed Mar 29, 2017 12:22 am

I've seen some post talking about that it is possible to write and read from a text document.
I'm very interested in how to do this if anyone could give me some insight would be excellent.

I was able to use ajax and read from a text document but I can't seem to figure out how to get it to write.
I'm new to ajax but not construct 2.
B
23
S
8
Posts: 115
Reputation: 2,640

Post » Wed Mar 29, 2017 12:28 am

https://www.scirra.com/manual/162/nwjs

You don't need AJAX to write. The NW.js object literally has a write file action.

The only thing you need to be careful of is file paths and permissions, which are covered on the manual page.
Mistakes were made.
B
53
S
27
G
114
Posts: 1,699
Reputation: 64,446


Return to How do I....?

Who is online

Users browsing this forum: jezjones24, minigame, semaso, Yahoo [Bot] and 4 guests

cron