Hundreds of features to explore
Games made in Construct
Your questions answered
Popular & trusted by schools and Universities world-wide
Construct 3 runs in the browser & works offline
Students do not need accounts with us
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Game development stories & opinions
Has anyone been able to get this to work? If I try this...
NWjs | Set 'testStr' to NWjs.ReadFile("sometext.txt")
NWjs | Write file 'testStr' to file "testOut.txt"
I get an empty text file written. Maybe I'm just using it wrong?
With which version of NW.js?
Version 12. I'm holding off on 13 for just a little while longer.
NW12 is functionnal with C2r216 maybe the path for textout.txt is wrong
Can't be. The file itself gets created, it's just that nothing is written to it, presumably because testStr itself is empty.
tested and all work as intended
create folder and file created with write function and append function....
I don't think you try to write in program files folder so your path for "sometext" is wrong or you miss something with event
Develop games in your browser. Powerful, performant & highly capable.
I made a silly mistake, forgot to add NWjs.AppFolder to the path
Thanks for the help