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?
Develop games in your browser. Powerful, performant & highly capable.
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
I made a silly mistake, forgot to add NWjs.AppFolder to the path
Thanks for the help
you're welcome