Loading a file from disk with node webkit not working

Get help using Construct 2

Post » Fri Mar 28, 2014 9:21 pm

I dunno why, but I can't seem to successfully load a file from disk with node webkit.

Saving works fine - I can open the file in notepad and see the data there - but loading it in node webkit just results in a blank dictionary object.

Any thoughts?
You do not have the required permissions to view the files attached to this post.
Moderator
B
95
S
34
G
33
Posts: 3,007
Reputation: 27,876

Post » Fri Mar 28, 2014 9:47 pm

Set filedata to Nodewebkit.ReadFile(NodeWebkit.UserFolder&"debugfile0.debugdata")

You're missing the Nodewebkit.ReadFile() so you're just trying to load the filename into the dictionary.
B
55
S
29
G
19
Posts: 1,520
Reputation: 25,670

Post » Fri Mar 28, 2014 10:12 pm

ARGH, I KNEW it was something stupid

Thanks! :oops:
Moderator
B
95
S
34
G
33
Posts: 3,007
Reputation: 27,876


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 45 guests